@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) • 945 B
TypeScript
import { RefAttributes } from 'react';
import { SelectProps, VirtualizerProps, ListLayoutOptions, FieldErrorProps, PopoverProps } from 'react-aria-components';
import { ButtonProps } from '../button/types.js';
import { LabelProps } from '../label/types.js';
import 'tailwind-variants';
import '../../lib/types.js';
import '../button/styles.js';
import 'tailwind-merge';
type SelectFieldProps = Omit<SelectProps, 'className'> & Pick<VirtualizerProps<ListLayoutOptions>, 'layoutOptions'> & RefAttributes<HTMLDivElement> & {
classNames?: {
description?: string;
error?: FieldErrorProps['className'];
field?: string;
label?: LabelProps['className'];
trigger?: ButtonProps['className'];
value?: string;
popover?: PopoverProps['className'];
};
label?: string;
description?: string;
errorMessage?: string;
size?: 'medium' | 'small';
};
export type { SelectFieldProps };