@suluk/shadcn - v0.1.2
    Preparing search index...

    Interface FieldSpec

    One form control, derived from a single object property.

    interface FieldSpec {
        name: string;
        label: string;
        widget: FieldWidget;
        required: boolean;
        description?: string;
        options?: string[];
        min?: number;
        max?: number;
        pattern?: string;
        relation?: string;
    }
    Index

    Properties

    name: string

    Property name = react-hook-form field name.

    label: string

    Human label (title if present, else the humanised name).

    widget: FieldWidget

    Which shadcn control to render.

    required: boolean

    Whether the property is in the object's required[].

    description?: string

    Schema description, if any (rendered as helper text).

    options?: string[]

    Allowed values for a select (the enum members, stringified).

    min?: number

    Numeric bounds (minimum/maximum) — surfaced on number/date inputs.

    max?: number
    pattern?: string

    String pattern (regex source) — surfaced as a hint.

    relation?: string

    For a relation widget: the entity this property references (from x-suluk-relation).