UNPKG

welcome-ui

Version:

Customizable design system with react, typescript, tailwindcss and ariakit.

13 lines (12 loc) 423 B
import { ComponentProps } from 'react'; export interface InputTextOptions { icon?: JSX.Element; iconPlacement?: 'left' | 'right'; isClearable?: boolean; size?: Size; transparent?: boolean; variant?: Variant; } export type InputTextProps = InputTextOptions & Omit<ComponentProps<'input'>, 'size'>; export type Size = 'lg' | 'md' | 'sm' | 'xs'; export type Variant = 'danger' | 'success' | 'warning';