Label

Accessible label for form controls.

Installation

Once per app, set up Aedis UI. The CLI verifies the signed release before writing anything and pins every dependency:

npx @aedis/cli@0.1.0 init

Import the theme once in your global CSS, after Tailwind:

app/globals.css
@import "tailwindcss";@import "./styles/aedis-theme.css";

Then add the component:

npx @aedis/cli@0.1.0 add label# pnpm dlx @aedis/cli@0.1.0 add label · yarn dlx @aedis/cli@0.1.0 add label · bunx @aedis/cli@0.1.0 add label

Props

PropTypeDefaultDescription
...propslabel props—Every prop of the native label.

Security

  • Every control needs a label or an aria-label; tests check this with axe.