Form Control

Label, helper text, and error slot that wraps form inputs and wires up `aria-describedby`/`aria-invalid`.

Foundation@sisyphos-ui/form-controlView on npm

Preview

tsx

We'll never share your email.

Installation

Install the individual package:

snippet.bashbash
pnpm add @sisyphos-ui/form-control @sisyphos-ui/core

Or use the umbrella package that bundles everything:

snippet.bashbash
pnpm add @sisyphos-ui/ui

Usage

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.