feat: update form label and message styles & add select component

This commit is contained in:
arraysid
2025-05-23 01:14:10 +07:00
parent 610a1b7556
commit 08b4c39c03
6 changed files with 1043 additions and 2 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ function FormLabel({
<Label
data-slot="form-label"
data-error={!!error}
className={cn('data-[error=true]:text-destructive', className)}
className={cn('data-[error=true]:text-rose-500', className)}
htmlFor={formItemId}
{...props}
/>
@@ -147,7 +147,7 @@ function FormMessage({ className, ...props }: React.ComponentProps<'p'>) {
<p
data-slot="form-message"
id={formMessageId}
className={cn('text-destructive text-sm', className)}
className={cn('text-rose-500 text-xs', className)}
{...props}
>
{body}
+1
View File
@@ -4,3 +4,4 @@ export * from './card';
export * from './form';
export * from './input';
export * from './label';
export * from './select';
File diff suppressed because one or more lines are too long