Label
glasswave/labelFreeComponent
Accessible label associated with controls.
Live preview
live · rendered by the registry
Rendered by glasswave on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glasswave.denizisik.com/r/label.jsonSource
1"use client";23import * as LabelPrimitive from "@radix-ui/react-label";4import { cva, type VariantProps } from "class-variance-authority";5import * as React from "react";67import { cn } from "@/lib/utils";89const labelVariants = cva(10 "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 opacity-90",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.displayName;2526export { Label };
What it pulls in
npm packages
Files it writes
More from glasswave
All 60 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | glasswave | Components | Free | 2 deps | |
| Alertalert | glasswave | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | glasswave | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | glasswave | Components | Free | 1 dep | |
| Avataravatar | glasswave | Components | Free | 1 dep | |
| Badgebadge | glasswave | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | glasswave | Components | Free | 2 deps | |
| Buttonbutton | glasswave | Components | Free | 2 deps |
