MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / FieldLegend

Function FieldLegend

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected