UNPKG

@switch-to-eu/layout-ui

Version:

Modular UI design system for privacy-focused tools - React components with Tailwind CSS and theme customization

17 lines 779 B
import * as React from "react"; import type { UseFormRegister, FieldError, FieldPath, FieldValues } from "react-hook-form"; import type { z } from "zod"; export interface FormInputProps<TFormData extends FieldValues> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "name"> { label: string; name: FieldPath<TFormData>; register: UseFormRegister<TFormData>; error?: FieldError; description?: string; valueAsNumber?: boolean; schema?: z.ZodObject<z.ZodRawShape>; } export declare const FormInput: { <TFormData extends FieldValues>({ label, name, register, error, description, className, id, valueAsNumber, schema, ...props }: FormInputProps<TFormData>): React.JSX.Element; displayName: string; }; //# sourceMappingURL=FormInput.d.ts.map