@accelint/design-toolkit
Version:
An open-source component library to serve as part of the entire ecosystem of UX for Accelint.
27 lines (24 loc) • 1.05 kB
TypeScript
import { DateValue, DateFieldProps as DateFieldProps$1, LabelProps, DateInputProps, DateSegmentProps, FieldErrorProps } from 'react-aria-components';
import { VariantProps } from 'tailwind-variants';
import { DateFieldStyles } from './styles.js';
type DateFieldProps<T extends DateValue> = Omit<DateFieldProps$1<T>, 'children' | 'className' | 'placeholder'> & VariantProps<typeof DateFieldStyles> & {
classNames?: {
field?: DateFieldProps$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;
inputProps?: Omit<DateInputProps, 'children' | 'className'>;
/**
* When true, will convert month value to 3 letter abbreviation when not editing
*/
shortMonth?: boolean;
size?: 'small' | 'medium';
};
export type { DateFieldProps };