Components/Forms & inputs/Input
component

Input

src/components/inputs.tsx

Import

import { Input } from "@ossrandom/design-system";

Examples

Sizes

↗ Playground

States

↗ Playground

API

extends BaseProps

PropType
value string
defaultValue string
placeholder string
size Size
status InputStatus
disabled boolean
readOnly boolean
invalid boolean
prefix ReactNode
suffix ReactNode
clearable boolean
type "text" | "email" | "password" | "url" | "search" | "tel"
autoFocus boolean
onChange (value: string, e: ChangeEvent<HTMLInputElement>) => void; readonly onFocus?: (e: FocusEvent<HTMLInputElement>) => void; readonly onBlur?: (e: FocusEvent<HTMLInputElement>) => void; readonly onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;