New! TimeInput is in beta, the API is subject to change. Feel free to test it out and let us know what you think! This component is available on thestable branch.
Whether to use a 12-hour or 24-hour time format. If not specified, defaults to whichever convention the browser's locale uses.
string"12"
"24"
Custom messages for TimeInput. Used for internationalization and customization of default strings and accessibility announcements.
object
{
activePeriodValue: "string",
activeSection: "string",
activeSectionValue: "string",
chooseTime: "string",
currentValue: "string",
inputLabel: "string",
invalidTime: "string",
openDrop: "string",
sectionHours: "string",
sectionMeridiem: "string",
sectionMinutes: "string",
sectionSeconds: "string"
}
The increment, in minutes, used when navigating the minutes section with the up/down arrow keys or the drop options.
number1
Function that will be called when the user types or selects a time. The updated value will be available via 'event.value'.
function({ value }) => {}The background of the currently active time section.
string"active-background"
The color of the active section's indicator bar.
string"white"
object{ dark: "white", light: "black" }The background of an option in the time selection drop.
string"background-front"
The background of an option in the time selection drop when hovered or active via keyboard navigation.
string"active-background"
The text color of the selected option.
string"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the selected option when hovered or active via keyboard navigation.
string"selected"