
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
react-ui-validations
Advanced tools
Набор компонентов, реализующих поведение валидаций по контур-гайдам.
npm install --save react-ui-validations
import { ValidationContainer, ValidationWrapperV1 } from 'react-ui-validations';
export default class DataEditor extends React.Component {
// ...
render() {
return (
<ValidationContainer>
<ValidationWrapperV1
validationInfo={/\d+/.test(phone)
? { message: 'Телефон должен состоять только из цифр' }
: null}>
<Input
value={phone}
onChange={value => setState({ phone: value })}
/>
</ValidationWrapperV1>
</ValidationContainer>
);
}
}
git clone git@github.com:skbkontur/react-ui-validations.git
cd react-ui-validations
npm install
cd docs
npm install
npm start
FAQs
Validations for @skbkontur/react-ui
The npm package react-ui-validations receives a total of 192 weekly downloads. As such, react-ui-validations popularity was classified as not popular.
We found that react-ui-validations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.