logoRuru UI

Input

The Input component is used to get user input.

https://
.com

Installation

npx ruru-ui-cli@latest add input

Usage

Variants

Input with Label

Input with Prefix and Suffix

@
.com

Input with Error Message

Search Input

Disabled Input

Password Input

Props

Input

NameTypeDefaultDescription
classNamestring""Additional class names for the container.
iclassNamestring""Additional class names for the input element.
prefixReact.ReactNode or stringundefinedNode or string to render as prefix inside the input container.
suffixReact.ReactNode or stringundefinedNode or string to render as suffix inside the input container.
prefixStylingbooleantrueFlag to apply styling to the prefix.
suffixStylingbooleantrueFlag to apply styling to the suffix.
labelstringundefinedLabel for the input element.
errorstring""Error message to display below the input.
disabledbooleanfalseFlag to disable the input.

SearchInput

NameTypeDefaultDescription
enablePrefixStylingbooleanfalseFlag to apply styling to the prefix.

PasswordInput

NameTypeDefaultDescription
...InputPropsOmit<InputProps, "label" | "error">-Props for the Input component.

On this page