DateSelect

DateSelect

Allows the user to select a date using dials for year, month and day. Ideal for choosing a distant date, like a birthday.

<DateSelect
label="Date of Birth"
value="1995-06-09"
onChange={val => setDate(val)}
/>

Props

errorMessage
string
isDisabled
bool
label
string
onChange
func
required
testID
string
value
string

DateSelectWithValidation

Also compatible with the <Form/> component.

<Form>
{form => (
<DateSelectWithValidation label="Date of Birth" name="dob" form={form} />
)}
</Form>

Props

defaultValue
string
form
object
required
isDisabled
bool
isRequired
bool
label
string
required
name
string
required
onChange
func
onKeyPress
func
validationMethods
array
[]