mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-10 11:51:29 +00:00
37 lines
796 B
TypeScript
37 lines
796 B
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
function Field({ className, ...props }: React.ComponentProps<"div">) {
|
|
return (
|
|
<div
|
|
data-slot="field"
|
|
className={cn("flex flex-col gap-1.5", className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function FieldLabel({ className, ...props }: React.ComponentProps<"label">) {
|
|
return (
|
|
<label
|
|
data-slot="field-label"
|
|
className={cn(
|
|
"text-text-neutral-tertiary text-xs font-light tracking-tight",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function FieldError({ className, ...props }: React.ComponentProps<"p">) {
|
|
return (
|
|
<p
|
|
data-slot="field-error"
|
|
className={cn("text-text-error-primary max-w-full text-xs", className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Field, FieldError, FieldLabel };
|