SYS:ONLINE● ACTIVE
THEME
GITHUBv0.1.0

LABEL

Accessible form label using Radix UI Label primitive.

DEPS:@radix-ui/react-label

PREVIEW

INSTALLATION

BASH
npx shadcn@latest add @scificn/label

USAGE

TSX
import { Label } from '@scificn/ui'

export function Example() {
  return (
    <div className="flex flex-col gap-1.5">
      <Label htmlFor="email">EMAIL</Label>
      <input id="email" type="email" />
    </div>
  )
}

PROPS

PROPTYPEDEFAULTDESCRIPTION
htmlForstringID of the associated form control.
classNamestringAdditional CSS classes.