Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
react-ui-validations
Advanced tools
Набор компонентов, реализующих поведение валидаций по Контур.Гайдам.
npm install --save @skbkontur/react-ui-validations
import { ValidationContainer, ValidationWrapper } from 'react-ui-validations';
export default class DataEditor extends React.Component {
// ...
render() {
return (
<ValidationContainer>
<ValidationWrapper
validationInfo={/\d+/.test(phone) ? { message: 'Телефон должен состоять только из цифр' } : null}
>
<Input value={phone} onValueChange={value => setState({ phone: value })} />
</ValidationWrapper>
</ValidationContainer>
);
}
}
yarn start:docs
Библиотека поддерживает работу в React.StrictMode начиная с версии 1.7.0
. Подробнее.
FAQs
Validations for @skbkontur/react-ui
The npm package react-ui-validations receives a total of 109 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 0 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.