Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A text field whose label floats up out of the way as you type.
npx shadcn@latest add ikislay/pixel-ui/inputimport { Input } from "@/components/ui/input"export function Demo() {return <Input label="Email" type="email" />}
1// Loading…
Options you can pass to customize this component.
label*stringThe field's name. It doubles as the placeholder and stays visible once filled.
errorReactNodeAn error message. Setting it marks the field invalid and announces the message.
onFeedback(event: "error") => voidCalled at each semantic moment, for wiring sound or haptics.
classNamestringMerged onto the wrapper. Other props go to the input.