- Added essential configuration files including components.json, package.json, and tsconfig.json to establish the component library structure. - Introduced global styles in globals.css and layout structure in layout.tsx for consistent design application. - Implemented various UI components such as Accordion, AlertDialog, Button, Card, and more, enhancing the component library for future development. - Included utility functions and hooks to support component functionality and responsiveness. This commit sets up the groundwork for a comprehensive UI component library, facilitating a modular and scalable design system.
25 lines
693 B
TypeScript
25 lines
693 B
TypeScript
import * as React from "react"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
export interface FormContainerProps extends React.FormHTMLAttributes<HTMLFormElement> {}
|
|
|
|
const FormContainer = React.forwardRef<HTMLFormElement, FormContainerProps>(({ className, ...props }, ref) => {
|
|
return (
|
|
<form
|
|
ref={ref}
|
|
className={cn(
|
|
"rounded-[22px] p-8",
|
|
"bg-gradient-to-br from-[rgba(242,227,208,0.98)] to-[rgba(255,247,236,0.95)]",
|
|
"border border-[rgba(210,106,50,0.2)]",
|
|
"shadow-[0_14px_24px_rgba(31,27,23,0.18)]",
|
|
"grid gap-6",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
})
|
|
FormContainer.displayName = "FormContainer"
|
|
|
|
export { FormContainer }
|