label.tsx
This file
Path
apps/web/src/components/ui/label.tsx
19 lines · 504 bytes · TypeScript
Last changed by
Draw text, controls, prose and code from one set of tokensoscabrielbefore adoption60f862e
History of this fileTake it
Give the web its W9 dependencies, components, project nav, line and revision helpers, and a stub for every new pageoscabrielbefore adoption254268a
lines 1–10why, one step back1"use client";23import { cn } from "cn";4import * as React from "react";56function Label({ className, ...props }: React.ComponentProps<"label">) {7 return (8 <label9 data-slot="label"10 className={cn(Draw text, controls, prose and code from one set of tokensoscabrielbefore adoption60f862e
line 11why, one step back11 "text-label flex items-center gap-2 leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",Give the web its W9 dependencies, components, project nav, line and revision helpers, and a stub for every new pageoscabrielbefore adoption254268a
lines 12–19why, one step back12 className13 )}14 {...props}15 />16 );17}1819export { Label };