Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ConfigurableInputProps

Props for editing a serialized configurable-input expression.

Import

import type { ConfigurableInputProps } from "@dartwic/interface-sdk/ui";

Declaration

export interface ConfigurableInputProps extends HostComponentProps {
    /** Serialized configurable-input state. */
    initialData: Record<string, unknown>;
    /** Called whenever the serialized state changes. */
    onDataChange: (nextData: Record<string, unknown>) => void;
    /** Input kinds hidden from the editor. */
    excludedTypes?: string[];
    /** Uses the compact editor layout. */
    compact?: boolean;
}

Members

NameTypeRequirementDescription
initialDataRecord<string, unknown>RequiredSerialized configurable-input state.
onDataChange(nextData: Record<string, unknown>) => voidRequiredCalled whenever the serialized state changes.
excludedTypesstring[]OptionalInput kinds hidden from the editor.
compactbooleanOptionalUses the compact editor layout.