Optional
ampmOptional
ampmDisplay ampm controls under the clock (instead of in the toolbar).
Optional
autoIf true
, the main element is focused during the first mount.
This main element is:
day
view).input
element if there is a field rendered.Optional
classOptional
closeIf true
, the popover or modal will close after submitting the full date.
Optional
customOptional. Used to provide custom translation strings to the component.
Optional
defaultThe default value. Used when the component is not controlled.
Optional
desktopCSS media query when Mobile
mode will be changed to Desktop
.
Optional
disabledOptional. If true, the component will not be interactive.
Optional
disableIf true
, disable values after the current date for date components, time for time components and both for date time components.
Optional
disableDo not ignore date part when validating min/max time.
Optional
disableIf true
, the open picker button will not be rendered (renders only the field).
Optional
disableIf true
, disable values before the current date for date components, time for time components and both for date time components.
Optional
enableOptional
errorOptional. Text to be shown when an error has occurred.
Optional
formatFormat of the date when rendered in the input(s).
Defaults to localized format based on the used views
.
Optional
formatDensity of the format when rendered in the input.
Setting formatDensity
to "spacious"
will add a space before and after each /
, -
and .
character.
Optional
fullOptional. If true, the component will take up the full width of its container.
Optional
helperOptional. Text showing underneath the component.
Optional
inputPass a ref to the input
element.
Optional
isOptional. If true, a loading skeleton will be rendered instead of the component.
Optional
labelOptional. Label for the component.
Optional
langOptional. Set the language used for the component’s translation strings. Default is "sv".
Optional
localeLocale for components texts.
Allows overriding texts coming from LocalizationProvider
and theme
.
Optional
maxMaximal selectable time.
The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true
.
Optional
minMinimal selectable time.
The date part of the object will be ignored unless props.disableIgnoringDatePartForTimeValidation === true
.
Optional
minutesStep over minutes.
Optional
nameName attribute used by the input
element in the Field.
Optional
onCallback fired when the value is accepted.
The value that was just accepted.
The context containing the validation result of the current value.
Optional
onCallback fired when the value changes.
The new value.
The context containing the validation result of the current value.
Optional
onCallback fired when the popup requests to be closed.
Use in controlled mode (see open
).
Optional
onCallback fired when the error associated with the current value changes.
When a validation error is detected, the error
parameter contains a non-null value.
This can be used to render an appropriate form error.
The reason why the current value is not valid.
The value associated with the error.
Optional
onCallback fired when the popup requests to be opened.
Use in controlled mode (see open
).
Optional
onCallback fired when the selected sections change.
The new selected sections.
Optional
onCallback fired on view change.
The new view.
Optional
openControl the popup or dialog open state.
Optional
openThe default visible view.
Used when the component view is not controlled.
Must be a valid option from views
list.
Optional
orientationForce rendering in particular orientation.
Optional
readOptional. If true, the component will be read-only.
Optional
reduceIf true
, disable heavy animations.
Optional
referenceThe date used to generate the new value when both value
and defaultValue
are empty.
Optional
selectedThe currently selected sections. This prop accepts four formats:
FieldSectionType
is provided, the first section with that name will be selected."all"
is provided, all the sections will be selected.null
is provided, no section will be selected.
If not provided, the selected sections will be handled internally.Optional
sheetOptional. Supporting text showing under the title of the sheet in mobile views.
Optional
sheetOptional. Title showing at the top of the sheet in mobile views.
Optional
shouldDisable specific time.
The value to check.
The clock type of the timeValue.
If true
the time will be disabled.
Optional
skipIf true
, disabled digital clock items will not be rendered.
Optional
sxThe system prop that allows defining system overrides as well as additional CSS styles.
Optional
thresholdAmount of time options below or at which the single column time renderer is used.
Optional
timeThe time steps between two time unit options.
For example, if timeStep.minutes = 8
, then the available minute options will be [0, 8, 16, 24, 32, 40, 48, 56]
.
When single column time renderer is used, only timeStep.minutes
will be used.
@default{ hours: 1, minutes: 1, seconds: 5 }
Optional
timezoneChoose which timezone to use for the value. Example: "default", "system", "UTC", "America/New_York". If you pass values from other timezones to some props, they will be converted to this timezone before being used.
See the timezones documentation for more details.
Optional
valueThe selected value. Used when the component is controlled.
Optional
viewThe visible view.
Used when the component view is controlled.
Must be a valid option from views
list.
Optional
viewDefine custom view renderers for each section.
If null
, the section will only have field editing.
If undefined
, internally defined view will be used.
Optional
viewsAvailable views.
12h/24h view for hour selection clock.