Label
skyroc-ui/labelFreeBlock
skyroc-ui publishes no description for this item.
Install it
npx shadcn@latest add https://ui-play.skyroc.me/r/label.jsonSource
1'use client';23import type { ComponentRef } from 'react';4import { forwardRef } from 'react';5import type { Root } from '@radix-ui/react-label';6import { useComponentConfig } from '../config-provider/context';7import LabelUI from './LabelUI';8import type { LabelProps } from './types';910const Label = forwardRef<ComponentRef<typeof Root>, LabelProps>((props, ref) => {11 const config = useComponentConfig('label');1213 const mergedProps = {14 ...config,15 ...props16 };1718 return (19 <LabelUI20 {...mergedProps}21 ref={ref}22 />23 );24});2526Label.displayName = 'Label';2728export default Label;
What it pulls in
npm packages
Other registry items
Files it writes
More from skyroc-ui
All 58 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | skyroc-ui | Blocks | Free | 2 deps · 10 files | |
| Alertalert | skyroc-ui | Blocks | Free | 1 dep · 9 files | |
| Alert Dialogalert-dialog | skyroc-ui | Blocks | Free | 2 deps · 13 files | |
| Arrowarrow | skyroc-ui | Blocks | Free | no deps | |
| Aspect Ratioaspect-ratio | skyroc-ui | Blocks | Free | 1 dep · 4 files | |
| Avataravatar | skyroc-ui | Blocks | Free | 1 dep · 8 files | |
| Badgebadge | skyroc-ui | Blocks | Free | no deps · 7 files | |
| Bottom Sheetbottom-sheet | skyroc-ui | Blocks | Free | no deps · 12 files |
