Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

856 B
Raw Blame
'use client'

import { Fieldset as BaseFieldset } from '@base-ui/react/fieldset'
import { cn } from '../cn'
import { resolveClassName } from '../internal/resolve-class-name'

type FieldsetProps = BaseFieldset.Root.Props

function Fieldset({ className, ...props }: FieldsetProps) {
  return (
    <BaseFieldset.Root
      className={(state) => cn('m-0 min-w-0 border-0 p-0', resolveClassName(className, state))}
      {...props}
    />
  )
}

type FieldsetLegendProps = BaseFieldset.Legend.Props

function FieldsetLegend({ className, ...props }: FieldsetLegendProps) {
  return (
    <BaseFieldset.Legend
      className={(state) =>
        cn('mb-1 py-1 system-sm-medium text-text-secondary', resolveClassName(className, state))
      }
      {...props}
    />
  )
}

export { Fieldset, FieldsetLegend }

export type { FieldsetLegendProps, FieldsetProps }