DateField
An input used for entering dates.
Importing
1
import { DateField } from '@infinityfx/fluid';Usage
With annotation
API reference
DateField Props
value?
Date | null
Controlled selected date.
defaultValue?
Date
Default selected date for uncontrolled usage.
onChange?
(value: Date | null) => void
clearable?
boolean
false
Shows a button to clear the selected date.
locale?
string
A language and/or region identifier, determining the displayed language.
size?
'xsm' | 'sml' | 'med' | 'lrg'
'med'
variant?
'default' | 'minimal'
'default'
round?
boolean
false
icon?
React.ReactNode
Icon element displayed on the left side of the field.
error?
any
Marks the field as invalid when truthy.
disabled?
boolean | Date[]
false
Disables the input entirely when true, or disables specific dates in the picker when an array of dates is provided.