workspace-ui-kit/components/primitives/SectionLabel.tsx
snc777 f6a781c47e initial commit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-09 14:24:17 +09:00

32 lines
708 B
TypeScript

import React from "react";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const sectionLabelVariants = cva(
"text-sm font-semibold uppercase tracking-wide text-muted-foreground",
{
variants: {
tone: {
default: "",
sidebar: "text-sidebar-foreground/70",
},
},
defaultVariants: {
tone: "default",
},
},
);
function SectionLabel({
className,
tone = "default",
...props
}: React.ComponentProps<"h2"> & VariantProps<typeof sectionLabelVariants>) {
return (
<h2 className={cn(sectionLabelVariants({ tone }), className)} {...props} />
);
}
export { SectionLabel, sectionLabelVariants };