Feat: Add FormContainer component #3221 (#7588)

### What problem does this PR solve?

Feat: Add FormContainer component #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-12 19:39:37 +08:00
committed by GitHub
parent f8cc557892
commit 3877bcfc21
6 changed files with 81 additions and 54 deletions

View File

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