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

Function FieldSeparator

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

Source from the content-addressed store, hash-verified

154}
155
156function FieldSeparator({
157 children,
158 className,
159 ...props
160}: React.ComponentProps<"div"> & {
161 children?: React.ReactNode
162}) {
163 return (
164 <div
165 data-slot="field-separator"
166 data-content={!!children}
167 className={cn(
168 "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
169 className
170 )}
171 {...props}
172 >
173 <Separator className="absolute inset-0 top-1/2" />
174 {children && (
175 <span
176 className="bg-background text-muted-foreground relative mx-auto block w-fit px-2"
177 data-slot="field-separator-content"
178 >
179 {children}
180 </span>
181 )}
182 </div>
183 )
184}
185
186function FieldError({
187 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected