Files
ragflow/web/src/components/form-container.tsx
Jimmy Ben Klieve ef4cbe72a3 refactor(ui): adjust global navigation bar style (#13419)
### What problem does this PR solve?

Renovate global navigation bar, align styles to the design.
(May causes minor layout issues in sub-pages, will check and fix soon)

### Type of change

- [x] Refactoring
2026-03-05 20:47:29 +08:00

27 lines
488 B
TypeScript

import { cn } from '@/lib/utils';
import { PropsWithChildren } from 'react';
export type FormContainerProps = {
className?: string;
show?: boolean;
} & PropsWithChildren;
export function FormContainer({
children,
show = true,
className,
}: FormContainerProps) {
return show ? (
<section
className={cn(
'border-0.5 border-border-button rounded-lg p-5 space-y-5',
className,
)}
>
{children}
</section>
) : (
children
);
}