g3-toolkit API Reference
    Preparing search index...

    Interface PropertyFieldProps

    interface PropertyFieldProps {
        accent: string;
        editable: boolean;
        fieldKey: string;
        label: string;
        onChange?: (value: unknown) => void;
        options?: readonly string[];
        value: unknown;
        widget: PropertyWidgetKind;
    }
    Index

    Properties

    accent: string

    Theme accent, applied to interactive controls.

    editable: boolean

    When true the widget is interactive; otherwise it is preview-only.

    fieldKey: string

    Property key (also used for the test id).

    label: string

    Display label.

    onChange?: (value: unknown) => void

    Called with the coerced new value when an editable widget changes.

    options?: readonly string[]

    Options for the select widget.

    value: unknown

    Current value.

    Widget to render.