@accelint/design-toolkit
Version:
An open-source component library to serve as part of the entire ecosystem of UX for Accelint.
20 lines (17 loc) • 832 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { TimeValue } from 'react-aria-components';
import { TimeFieldProps } from './types.js';
import 'tailwind-variants';
import './styles.js';
import 'tailwind-merge';
/**
* TimeField - Form input for time values
*
* A time input field with configurable granularity and size, built on React
* Aria components and suitable for forms requiring time entry.
*
* @example
* <TimeField label="Time" granularity="second" />
*/
declare function TimeField<T extends TimeValue>({ classNames, description: descriptionProp, errorMessage: errorMessageProp, granularity, hourCycle, inputProps, label: labelProp, shouldForceLeadingZeros, size, isDisabled, isInvalid: isInvalidProp, isRequired, ...rest }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
export { TimeField };