Skip to main content

IDateTimePickerTokens

@spartanfx/react v1.2.2


@spartanfx/react / index / IDateTimePickerTokens

Interface: IDateTimePickerTokens

Customization tokens for the DateTimePicker component. Any value supplied overrides the default theme resolved from the current AppearanceMode.

All keys are optional — provide only what you need.

Properties

Options

PropertyTypeDescription
borderRadius?numberBorder radius applied to the trigger and the time inputs (in px).
fieldHeight?numberHeight applied to the trigger field (in px).
popupGap?numberMinimum gap between popup sections (in px).
popupWidth?numberWidth of the popup callout (in px).
timeFieldWidth?numberWidth of the hour / minute inputs in the time picker (in px).
transitionDuration?stringTransition duration for hover / focus interactions (e.g. 0.15s).

Appearance & theming

PropertyTypeDescription
accentColor?stringAccent color used for the current day, AM/PM selection, primary button.
borderColor?stringBorder color of the trigger and the time fields.
borderHoverColor?stringBorder color on hover.
errorColor?stringColor of the inline error message and the border when an error is set.
fieldBackgroundColor?stringBackground color of the trigger field.
focusColor?stringBorder & focus ring color when the control is focused.
popupBackgroundColor?stringBackground of the popup Callout.
popupSurfaceColor?stringBackground of secondary popup sections (time + footer).
separatorColor?stringSeparator color used between popup sections.
textColor?stringColor of the text typed inside the trigger and the time fields.
textSecondaryColor?stringColor of secondary text (labels, placeholder, icon default color).