Composes accessible labels, controls, descriptions, and validation messages for form fields.
Loading...
Installation
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Composition
FieldSet (optional) ├── FieldLegend └── FieldGroup └── Field ├── FieldLabel │ └── FieldRequiredIndicator (optional) ├── form control ├── FieldDescription (optional) └── FieldError (optional)
Examples
Choice Cards
Loading...
Default
Loading...
Disabled
Loading...
Fieldset
Loading...
Orientation
Loading...
Validation
Loading...
API Reference
All visual parts accept className and the native attributes for the element they render. Parts backed by WireKyt primitives also accept their primitive props and forward refs.
Field
| Prop | Type | Default |
|---|---|---|
orientation | "vertical" | "horizontal" | "responsive" | "vertical" |
Angular
React
Solid
Svelte
Vue