Label
patchui/labelFreeComponent
patchui publishes no description for this item.
Install it
npx shadcn@latest add https://ui.hotfix.jobs/r/label.jsonSource
1"use client";23import { mergeProps } from "@base-ui/react/merge-props";4import { useRender } from "@base-ui/react/use-render";5import type React from "react";6import { cn } from "@/lib/utils";78export function Label({9 className,10 render,11 ...props12}: useRender.ComponentProps<"label">): React.ReactElement {13 const defaultProps = {14 className: cn(15 // Same recipe as FieldLabel so a standalone <Label> and a16 // Field-compound label read at identical weight (button-14 = 500).17 "inline-flex items-center gap-2 text-small font-medium text-ink",18 className,19 ),20 "data-slot": "label",21 };2223 return useRender({24 defaultTagName: "label",25 props: mergeProps<"label">(defaultProps, props),26 render,27 });28}
What it pulls in
npm packages
Other registry items
Files it writes
More from patchui
All 51 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | patchui | Components | Free | 2 deps | |
| Avataravatar | patchui | Components | Free | 3 deps | |
| Badgebadge | patchui | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | patchui | Components | Free | 1 dep | |
| Buttonbutton | patchui | Components | Free | 2 deps | |
| Calendarcalendar | patchui | Components | Free | 1 dep | |
| Cardcard | patchui | Components | Free | 1 dep | |
| Checkboxcheckbox | patchui | Components | Free | 2 deps |
