About
An accessible form label that pairs with a control via htmlFor, with built-in required/disabled states, Apple-style typography variants, and an uppercase "eyebrow" style for settings-style section headers.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Label to your project and fits it to your theme.
Code
How Label is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Label from "@/components/ui/label";
export default function EyebrowLabelDemo() {
return (
<div
style={{
maxWidth: 400,
display: "flex",
flexDirection: "column",
gap: "var(--may-space-4)",
color: "var(--may-color-text)",
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
gap: "var(--may-space-2)",
}}
>
<Label uppercase>Allow access when locked</Label>
<div
style={{
padding: "var(--may-space-4)",
borderRadius: "var(--may-radius-card)",
background: "var(--may-color-surface)",
}}
>
<p
className="may-text"
data-slot="text"
data-variant="body"
data-tone="default"
style={{ margin: 0 }}
>
Notification Center
</p>
</div>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
gap: "var(--may-space-2)",
}}
>
<Label uppercase>Siri & Search</Label>
<div
style={{
padding: "var(--may-space-4)",
borderRadius: "var(--may-radius-card)",
background: "var(--may-color-surface)",
}}
>
<p
className="may-text"
data-slot="text"
data-variant="body"
data-tone="default"
style={{ margin: 0 }}
>
Show Suggestions
</p>
</div>
</div>
</div>
);
}
















![Form [react-aria-components]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_jolbol1/field/814/preview.png)