@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A key-value inspector panel that renders a schema of typed fields against a data object.

    Each field definition maps to an appropriate editor widget (UIInput, UISelect, UICheckbox, UIColorPicker, or UISlider). Changes are emitted per-field via propertyChange and the data model is updated in-place.

    <ui-property-sheet
    [fields]="fields"
    [(data)]="config"
    (propertyChange)="onChanged($event)"
    />
    const fields: PropertyFieldDefinition<Config>[] = [
    { key: 'name', label: 'Name', type: 'string', group: 'General' },
    { key: 'color', label: 'Color', type: 'color', group: 'Appearance' },
    ];

    Type Parameters

    • T extends Record<string, unknown> = Record<string, unknown>
    Index

    Constructors

    • Type Parameters

      • T extends Record<string, unknown> = Record<string, unknown>

      Returns UIPropertySheet<T>

    Properties

    ariaLabel: InputSignal<string> = ...

    Accessible label for the sheet.

    data: ModelSignal<T> = ...

    The data object being inspected/edited (two-way bindable).

    fields: InputSignal<readonly PropertyFieldDefinition<T>[]> = ...

    Field definitions describing the properties to edit.

    propertyChange: OutputEmitterRef<PropertyChangeEvent<T>> = ...

    Emits when any property value changes.