label
showcase-elevenlabs/labelFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/label.jsonSource
1"use client"23import * as React from "react"4import * as LabelPrimitive from "@radix-ui/react-label"5import { cva, type VariantProps } from "class-variance-authority"67import { cn } from "@/lib/utils"89const labelVariants = cva(10 "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"11)1213const Label = React.forwardRef<14 React.ElementRef<typeof LabelPrimitive.Root>,15 React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &16 VariantProps<typeof labelVariants>17>(({ className, ...props }, ref) => (18 <LabelPrimitive.Root19 ref={ref}20 className={cn(labelVariants(), className)}21 {...props}22 />23))24Label.displayName = LabelPrimitive.Root.displayName2526export { Label }
What it pulls in
npm packages
Files it writes
More from shadcn/ui
All 357 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | 1 dep | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | 1 dep | |
| avataravatar | shadcn/ui | Components | Free | 1 dep | |
| badgebadge | shadcn/ui | Components | Free | 1 dep | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | 1 dep | |
| buttonbutton | shadcn/ui | Components | Free | 1 dep |
