Inputs
Usage and anatomy
Input is a native text field with plumeui-yt styling. Pair <Input /> with a visible <Label /> whenever the surrounding context does not already provide an accessible name.
import { Input } from "@acme/ui/input"import { Label } from "@acme/ui/label"<div className="flex plumeui-pw plumeui-naa"><Label htmlFor="email">Email address</Label></div>
- Use a unique
idand matchinghtmlForvalue to associate labels and inputs. - Use
aria-invalidfor validation feedback and provide a nearby error message. - Use the form example for controlled validation and submission behavior.
Input Default
License required
In order to get the source code for this component, you need to buy a license.
Input Sizes
License required
In order to get the source code for this component, you need to buy a license.
Input Disabled States
License required
In order to get the source code for this component, you need to buy a license.
Input Invalid States
License required
In order to get the source code for this component, you need to buy a license.
Input with Label
License required
In order to get the source code for this component, you need to buy a license.
Input with Form
License required
In order to get the source code for this component, you need to buy a license.
API reference
Input
| Prop | Type | Default |
|---|---|---|
| size | sm | md | lg | xl | xxl | md |
| disabled | boolean | false |
| aria-invalid | boolean | "true" | "false" | false |
Input also accepts native input props such as type, value, defaultValue, placeholder, and onChange. The custom size prop controls visual sizing.