Input

Accessible text input with label, error, and disabled states.

Live Demo

Please enter a valid email address.

Props

PropTypeDefaultDescription
labelstringVisible label text rendered above the input.
errorstringError message displayed below the input.
helperTextstringHelper text displayed below the input.
disabledbooleanfalseDisables the input.
placeholderstringPlaceholder text shown when the input is empty.
idstringHTML id attribute, used to link the label to the input.

Usage

import { Input } from '@ghiberti85/ui'

// Default
<Input label="Email" id="email" placeholder="you@example.com" />

// With error
<Input
  label="Email"
  id="email-error"
  placeholder="you@example.com"
  error="Please enter a valid email address."
/>

// Disabled
<Input label="Email (disabled)" placeholder="you@example.com" disabled />

View in Storybook

Open in Storybook
Ghiberti UI — Design System