@accelint/design-toolkit
Version:
An open-source component library to serve as part of the entire ecosystem of UX for Accelint.
24 lines (21 loc) • 945 B
TypeScript
import { TimeValue, TimeFieldProps as TimeFieldProps$1, LabelProps, DateInputProps, DateSegmentProps, FieldErrorProps } from 'react-aria-components';
import { VariantProps } from 'tailwind-variants';
import { TimeFieldStyles } from './styles.js';
import 'tailwind-merge';
type TimeFieldProps<T extends TimeValue> = Omit<TimeFieldProps$1<T>, 'children' | 'className' | 'placeholder'> & VariantProps<typeof TimeFieldStyles> & {
classNames?: {
field?: TimeFieldProps$1<T>['className'];
label?: LabelProps['className'];
control?: string;
input?: DateInputProps['className'];
segment?: DateSegmentProps['className'];
description?: string;
error?: FieldErrorProps['className'];
};
label?: string;
description?: string;
errorMessage?: string;
size?: 'small' | 'medium';
inputProps?: Omit<DateInputProps, 'children' | 'className'>;
};
export type { TimeFieldProps };