Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Input

A native <input> with the Glaceon control tokens. The invalid prop swaps the border to the destructive token and sets aria-invalid for assistive tech. The visible error message belongs to the form-field wrapper, not here.

React Inputlive
import { Input } from "@/components/ui/input";
<Input placeholder="Full name" />
<Input invalid placeholder="email@example.com" aria-describedby="email-error" />
Terminal window
npx @glaceon/cli add input --framework react # or svelte, solid
State Selector Applied styling
Default base 1px --line border on --surface.
Invalid [aria-invalid] Border switches to --danger. The invalid prop also sets aria-invalid so the state is announced, not just coloured.
Placeholder ::placeholder --muted.
Focus :focus-visible 2px --action ring with offset.
Disabled [disabled] cursor-not-allowed and 50% opacity.
Prop Type Default Description
invalid boolean false Red border plus aria-invalid="true".
type string "text" Native input type.
value string undefined Native value. Uncontrolled unless you handle onChange.
disabled boolean false Native disabled state.
placeholder string undefined Native placeholder text.
class / className string undefined Extra classes, appended last.

All other native <input> attributes pass through unchanged.