Label
crenspire-glass-ui/labelFreeComponent
Renders an accessible label associated with controls.
Live preview
live · rendered by the registry
Rendered by crenspire/glass-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glass-ui.crenspire.com/r/label.jsonSource
1"use client"23import * as React from "react"4import { Label as BaseLabel } from "@/components/ui/label"5import { cn } from "@/lib/utils"67export interface LabelProps extends React.ComponentProps<typeof BaseLabel> {8 required?: boolean9}1011/**12 * Glass UI Label - Enhanced label component with glassy styling13 */14export const Label = React.forwardRef<15 React.ElementRef<typeof BaseLabel>,16 LabelProps17>(({ className, required, children, ...props }, ref) => {18 return (19 <BaseLabel20 ref={ref}21 className={cn(22 "transition-colors duration-200",23 className24 )}25 {...props}26 >27 {children}28 {required && <span className="text-destructive ml-1">*</span>}29 </BaseLabel>30 )31})32Label.displayName = "Label"33
What it pulls in
npm packages
Other registry items
Files it writes
More from crenspire/glass-ui
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Alertalert | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Alert Dialogalert-dialog | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Avataravatar | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Badgebadge | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Breadcrumbbreadcrumb | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Buttonbutton | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Button Groupbutton-group | crenspire/glass-ui | Components | Free | no deps · 5 files |
