Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ConfigurableInput

Edits a configurable literal, channel reference, or expression value.

Import

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

Declaration

export const ConfigurableInput: HostComponent<ConfigurableInputProps>;

ConfigurableInputProps

Props for editing a serialized configurable-input expression.

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;
}
PropTypeRequirementDescription
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.