
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@slice-and-dice/govuk-react-date-field
Advanced tools
Date field component displaying day, month and year and featuring several configurable options.
import DateField from '@govuk-react/date-field';
Simple
<DateField>What is your date of birth?</DateField>
Date with hint text
<DateField hintText="For example, 31 03 1980">
What is your date of birth?
</DateField>
Date with hint text & error
<DateField
hintText="For example, 31 03 1980"
errorText="Error message goes here"
>
What is your date of birth?
</DateField>
With custom input name props
<DateField hintText="For example, 31 03 1980"
inputNames={{
day: 'dayInputName',
month: 'monthInputName',
year: 'yearInputName',
}}
>
What is your date of birth?
</DateField>
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children | true | `````` | node | |
defaultValues | { day: undefined, month: undefined, year: undefined, } | custom | ||
errorText | undefined | string | Error text | |
hintText | undefined | string | Optional hint text | |
input | undefined | shape[object Object] | Properties that are sent to the input, matching final form and redux form input type | |
inputNames | { day: undefined, month: undefined, year: undefined, } | shape[object Object] | Input name attributes |
FAQs
Date field component displaying day, month and year and featuring several configurable options.
The npm package @slice-and-dice/govuk-react-date-field receives a total of 1 weekly downloads. As such, @slice-and-dice/govuk-react-date-field popularity was classified as not popular.
We found that @slice-and-dice/govuk-react-date-field demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.