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

Function FieldSeparator

components/ui/field.tsx:146–174  ·  view source on GitHub ↗
({
  children,
  className,
  ...props
}: React.ComponentProps<"div"> & {
  children?: React.ReactNode;
})

Source from the content-addressed store, hash-verified

144}
145
146function FieldSeparator({
147 children,
148 className,
149 ...props
150}: React.ComponentProps<"div"> & {
151 children?: React.ReactNode;
152}) {
153 return (
154 <div
155 data-slot="field-separator"
156 data-content={!!children}
157 className={cn(
158 "-my-2 h-5 text-xs group-data-[variant=outline]/field-group:-mb-2 relative",
159 className
160 )}
161 {...props}
162 >
163 <Separator className="absolute inset-0 top-1/2" />
164 {children && (
165 <span
166 className="text-muted-foreground px-2 bg-background relative mx-auto block w-fit"
167 data-slot="field-separator-content"
168 >
169 {children}
170 </span>
171 )}
172 </div>
173 );
174}
175
176function FieldError({
177 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected