Skip to Content
DocsResourcesShowcase

Input

Used to get user input in a text field.

SourceStorybookRecipe

import { Input } from '@saas-ui/react'
<Input placeholder="..." />

Use the variant prop to change the visual style of the input.

Use the size prop to change the size of the input.

Pair the input with the Field component to add helper text.

We'll never share your email.

Pair the input with the Field component to add error text.

This field is required

Compose the input with the Field component to add a label, helper text, and error text.

Pair the input with the InputElement component to add an element to the left or right of the input.

https://
⌘K
https://

Use the InputAddon and Group components to add an addon to the input.

https://
.com

Use the disabled prop to disable the input.

Use the _placeholder prop to style the placeholder text.

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

size 'md'
'lg' | 'md' | 'sm' | 'xs'

The size of the component

variant 'outline'
'outline' | 'filled' | 'flushed'

The variant of the component

Previous

Image

Next

Menu