UNPKG

@yamada-ui/input

Version:

Yamada UI input component

29 lines (26 loc) 1.02 kB
import * as _yamada_ui_core from '@yamada-ui/core'; import { HTMLUIProps, ThemeProps, ColorModeToken, CSS } from '@yamada-ui/core'; import { FormControlOptions } from '@yamada-ui/form-control'; interface InputOptions { /** * The border color when the input is invalid. */ errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, "colors">; /** * The border color when the input is focused. */ focusBorderColor?: ColorModeToken<CSS.Property.BorderColor, "colors">; /** * The native HTML `size` attribute to be passed to the `input`. */ htmlSize?: number; } interface InputProps extends Omit<HTMLUIProps<"input">, "disabled" | "readOnly" | "required" | "size">, ThemeProps<"Input">, InputOptions, FormControlOptions { } /** * `Input` is a component used to obtain text input from the user. * * @see Docs https://yamada-ui.com/components/forms/input */ declare const Input: _yamada_ui_core.Component<"input", InputProps>; export { Input, type InputProps };