| 130 | } |
| 131 | |
| 132 | function FieldDescription({ className, ...props }: React.ComponentProps<"p">) { |
| 133 | return ( |
| 134 | <p |
| 135 | data-slot="field-description" |
| 136 | className={cn( |
| 137 | "text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance", |
| 138 | "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5", |
| 139 | "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", |
| 140 | className, |
| 141 | )} |
| 142 | {...props} |
| 143 | /> |
| 144 | ); |
| 145 | } |
| 146 | |
| 147 | function FieldSeparator({ |
| 148 | children, |