Aurora Label
aurora-dinglebear-ai/aurora-labelUnverifiedComponent
Accessible form label matching Aurora control typography.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-label.jsonSource
1"use client"23/**4 * Aurora Label — names a control. Matches the Claude Design source visually:5 * bright primary text at label weight, a rose (`--aurora-accent-pink`) required6 * asterisk, and a muted/dimmed disabled state.7 *8 * The visual layer is ported from the CD source onto a plain `<label>` element,9 * preserving native `htmlFor` association and all label HTML attributes.10 */1112import * as React from "react"13import * as LabelPrimitive from "@radix-ui/react-label"14import { cn } from "@/lib/utils"1516export interface LabelProps17 extends React.ComponentProps<typeof LabelPrimitive.Root> {18 /** Appends a rose required indicator (`*`) after the label text. */19 required?: boolean20 /** Dims the label to the muted tier (pairs with a disabled control). */21 disabled?: boolean22}2324function Label({ className, style, required, disabled, children, ref, ...props }: LabelProps & { ref?: React.Ref<HTMLLabelElement> }) {25 return (26 <LabelPrimitive.Root27 ref={ref}28 data-disabled={disabled ? "" : undefined}29 aria-disabled={disabled || undefined}30 className={cn(31 "aurora-text-label inline-flex items-center gap-1",32 "text-[var(--aurora-text-primary)]",33 "data-[disabled]:text-[var(--aurora-text-muted)]",34 className35 )}36 style={{37 cursor: disabled ? "not-allowed" : "default",38 ...style,39 }}40 {...props}41 >42 {children}43 {required && (44 <span aria-hidden="true" style={{ color: "var(--aurora-accent-pink)" }}>45 *46 </span>47 )}48 </LabelPrimitive.Root>49 )50}5152export { Label }53export default Label
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Accordionaurora-accordion | aurora | Components | Unverified | 2 deps | |
| Aurora Alert Dialogaurora-alert-dialog | aurora | Components | Unverified | 2 deps | |
| Aurora Aspect Ratioaurora-aspect-ratio | aurora | Components | Unverified | no deps | |
| Aurora Avataraurora-avatar | aurora | Components | Unverified | 1 dep | |
| Aurora Badgeaurora-badge | aurora | Components | Unverified | 2 deps | |
| Aurora Banneraurora-banner | aurora | Components | Unverified | 1 dep | |
| Aurora Breadcrumbaurora-breadcrumb | aurora | Components | Unverified | 2 deps | |
| Aurora Buttonaurora-button | aurora | Components | Unverified | 2 deps |
