UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

shadcn/ui/Label

Inputs & forms
1 of 3
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

3 versions·3 libraries

  • shadcn/ui
  • 8bitcn
  • HextaUI

Label

npx shadcn@latest add https://ui.shadcn.com/r/styles/new-york-v4/label.json
Open in v0 Docs Repo
Library
shadcn/ui
License
MIT
Stack
React · Tailwind CSS · radix
Packages
cnradix-ui
Also adds
checkbox
Size
24 lines
Demo
From shadcn/ui

Code

registry/new-york-v4/ui/label.tsx

"use client"

import * as React from "react"
import { cn } from "cn"
import { Label as LabelPrimitive } from "radix-ui"

function Label({
  className,
  ...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
  return (
    <LabelPrimitive.Root
      data-slot="label"
      className={cn(
        "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
        className
      )}
      {...props}
    />
  )
}

export { Label }

More like this

Scroll Index

Kokonut UI·Text effects

Dropdown Menu

shadcn/ui·Overlays

Fade Text

Eldora UI·Text effects

Ai Message

SmoothUI·Backgrounds

Ai Reasoning

SmoothUI·Media & 3D

Native Select

shadcn/ui·Inputs & forms

Sheet

shadcn/ui·Overlays

V0 Button

Kokonut UI·Buttons

Marking Menu

Kokonut UI·Overlays

Accordion

SmoothUI·Data display

Family Button

Cult UI·Buttons

Bubble Menu

React Bits·BackgroundsMIT+

Pixel Image

Magic UI·Media & 3D

Sidebar

shadcn/ui·Navigation

Dot Pattern

Magic UI·Backgrounds