UNPKG

ds-smart-ui

Version:

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

32 lines (30 loc) 1.32 kB
import { VariantProps } from 'class-variance-authority'; import { FormColorTypes, FormSizeTypes, FormTypes } from '../../../types/form-types'; declare const numberFieldVariants: (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 NumberFieldInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof numberFieldVariants> { label?: string; color?: FormColorTypes; placeholder?: string; size?: FormSizeTypes; rounded?: FormSizeTypes; iconStart?: React.ReactNode; iconEnd?: React.ReactNode; required?: boolean; disabled?: boolean; type?: FormTypes; helperText?: string; error?: boolean; id?: string; } interface NumberFieldProps extends NumberFieldInputProps { prefix?: string; thousandSeparator?: string; decimalSeparator?: string; suffix?: string; } declare const NumberField: import('react').ForwardRefExoticComponent<NumberFieldProps & import('react').RefAttributes<HTMLInputElement>>; export default NumberField;