Form Control
Label, helper text, and error slot that wraps form inputs and wires up `aria-describedby`/`aria-invalid`.
Preview
example.tsxtsx
We'll never share your email.
Password must be at least 12 characters.
Installation
Install the individual package:
snippet.bashbash
pnpm add @sisyphos-ui/form-control @sisyphos-ui/coreOr use the umbrella package that bundles everything:
snippet.bashbash
pnpm add @sisyphos-ui/uiUsage
Import the component styles and the component itself:
snippet.tsxtsx
import "@sisyphos-ui/form-control/styles.css";
import { FormControl } from "@sisyphos-ui/form-control";API
Props table is being written. See the package README for the complete API surface.
The full API including refs, ARIA attributes, and HTML passthroughs lives in the package README.