UNPKG

ds-smart-ui

Version:

Smart UI is a React component library that helps you build accessible and responsive web applications.

26 lines (24 loc) 1.16 kB
import { VariantProps } from 'class-variance-authority'; import { FormColorTypes, FormRoundedTypes, FormSizeTypes, FormTypes } from '../../../types/form-types'; declare const textFieldVariants: (props?: ({ size?: "sm" | "md" | "lg" | null | undefined; rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined; color?: "dark" | "light" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | null | undefined; } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string; export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof textFieldVariants> { label?: string; color?: FormColorTypes; placeholder?: string; size?: FormSizeTypes; rounded?: FormRoundedTypes; iconStart?: React.ReactNode; iconEnd?: React.ReactNode; required?: boolean; disabled?: boolean; type?: FormTypes; helperText?: string; error?: boolean; id?: string; } declare const TextField: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLInputElement>>; export default TextField;