mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Setup Inertia (#593)
This commit is contained in:
26
resources/js/components/ui/form.tsx
Normal file
26
resources/js/components/ui/form.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
export function Form({ className, children, ...props }: React.ComponentProps<'form'>) {
|
||||
return (
|
||||
<form {...props} className={cn('flex w-full flex-col gap-6', className)}>
|
||||
{children}
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
||||
export function FormFields({ className, children, ...props }: React.ComponentProps<'div'>) {
|
||||
return (
|
||||
<div className={cn('grid gap-6', className)} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function FormField({ className, children, ...props }: React.ComponentProps<'div'>) {
|
||||
return (
|
||||
<div className={cn('grid gap-2', className)} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user