shadcn, restyled · @jengacore/label
Label
shadcn Label, restyled: jengacore focus ring, radii, card fill, navy scrim and shadow-pop.
Separate Radix and Base UI builds
Install
terminal
npx shadcn@latest add @jengacore/labelWithout the namespace configured: npx shadcn@latest add https://ui.jengacore.com/r/<new-york-v4|base-nova>/label.json
Registry dependencies
npm packages
radix-ui
Source
components/ui/label.tsx
// jengacore: shadcn new-york/label, restyled by scripts/import-upstream.ts. Change the codemod, not this file.
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
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 }