Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

HostComponentProps

Shared presentation and native pass-through props accepted by host components.

Import

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

Declaration

export interface HostComponentProps {
    /** Additional Tailwind or host CSS classes. */
    className?: string;
    /** Child content rendered by the host component. */
    children?: HostNode;
    /** Optional DOM identifier. */
    id?: string;
    /** Inline style values passed to the host component. */
    style?: Record<string, unknown>;
    [name: string]: unknown;
}

Members

NameTypeRequirementDescription
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.
[nameunknownRequired