UNPKG

@daveyplate/better-auth-ui

Version:

Plug & play shadcn/ui components for better-auth

22 lines (18 loc) 510 B
import type { ReactNode } from "react" export type FieldType = "string" | "number" | "boolean" | "select" export interface AdditionalField { description?: ReactNode instructions?: ReactNode label: ReactNode placeholder?: string required?: boolean type: FieldType /** * Render a multi-line textarea for string fields */ multiline?: boolean validate?: (value: string) => Promise<boolean> } export interface AdditionalFields { [key: string]: AdditionalField }