MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / FieldLegend

Function FieldLegend

components/ui/field.tsx:23–39  ·  view source on GitHub ↗
({
  className,
  variant = "legend",
  ...props
}: React.ComponentProps<"legend"> & { variant?: "legend" | "label" })

Source from the content-addressed store, hash-verified

21}
22
23function FieldLegend({
24 className,
25 variant = "legend",
26 ...props
27}: React.ComponentProps<"legend"> & { variant?: "legend" | "label" }) {
28 return (
29 <legend
30 data-slot="field-legend"
31 data-variant={variant}
32 className={cn(
33 "mb-2.5 font-medium data-[variant=label]:text-xs data-[variant=legend]:text-sm",
34 className
35 )}
36 {...props}
37 />
38 );
39}
40
41function FieldGroup({ className, ...props }: React.ComponentProps<"div">) {
42 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected