flagon-io/g1t

public

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t/apps/web/app/components/ui/label.tsx

19 lines524 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Workspace names and icons, and a component kit for every control1import { Label as Primitive } from "radix-ui";
2import type { ComponentProps } from "react";
3
4import { cn } from "../../lib/cn";
5
6// shadcn/ui's label, styled with g1t's tokens.
7
8export function Label({ className, ...props }: ComponentProps<typeof Primitive.Root>) {
9 return (
10 <Primitive.Root
11 className={cn(
12 "flex items-center gap-2 text-sm font-medium text-muted select-none",
13 "peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
14 className,
15 )}
16 {...props}
17 />
18 );
19}