label
shipbase-ui/labelFreeComponent
shipbase/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/label.jsonSource
1"use client"23import * as React from "react"45import { createAnatomy } from "@ark-ui/react/anatomy"6import { type HTMLArkProps, ark } from "@ark-ui/react/factory"78import { cn } from "@/lib/utils"910const anatomy = createAnatomy("label").parts("root")11const parts = anatomy.build()1213const Label = React.forwardRef<HTMLLabelElement, HTMLArkProps<"label">>(14 ({ className, htmlFor, children, ...props }, ref) => (15 <ark.label16 ref={ref}17 {...parts.root.attrs}18 htmlFor={htmlFor}19 className={cn(20 "select-none font-medium text-foreground text-sm leading-4 peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",21 className22 )}23 {...props}24 >25 {children}26 </ark.label>27 )28)29Label.displayName = "Label"3031export { Label }
What it pulls in
npm packages
Files it writes
More from shipbase/ui
All 32 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shipbase/ui | Components | Free | 2 deps | |
| avataravatar | shipbase/ui | Components | Free | 1 dep | |
| badgebadge | shipbase/ui | Components | Free | 2 deps | |
| buttonbutton | shipbase/ui | Components | Free | 2 deps | |
| cardcard | shipbase/ui | Components | Free | 1 dep | |
| checkboxcheckbox | shipbase/ui | Components | Free | 2 deps | |
| collapsiblecollapsible | shipbase/ui | Components | Free | 1 dep | |
| comboboxcombobox | shipbase/ui | Components | Free | 2 deps |
