@accelint/design-toolkit
Version:
An open-source component library to serve as part of the entire ecosystem of UX for Accelint.
28 lines (25 loc) • 928 B
TypeScript
import { RefAttributes } from 'react';
import { TextFieldProps as TextFieldProps$1, FieldErrorProps } from 'react-aria-components';
import { InputProps } from '../input/types.js';
import { LabelProps } from '../label/types.js';
import 'tailwind-variants';
import '../button/types.js';
import '../../lib/types.js';
import '../button/styles.js';
import 'tailwind-merge';
import '../input/styles.js';
type TextFieldProps = Omit<TextFieldProps$1, 'children' | 'className' | 'type' | 'pattern'> & RefAttributes<HTMLDivElement> & {
classNames?: {
field?: TextFieldProps$1['className'];
label?: LabelProps['className'];
input?: InputProps['classNames'];
description?: string;
error?: FieldErrorProps['className'];
};
label?: string;
inputProps?: InputProps;
description?: string;
errorMessage?: string;
size?: 'medium' | 'small';
};
export type { TextFieldProps };