Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SelectItem

Select Item using the host's single-choice fields presentation.

Import

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

Declaration

export const SelectItem: HostComponent<SelectItemProps>;

SelectItemProps

Props accepted by a selectable item.

export interface SelectItemProps extends HostComponentProps {
    /** Value produced when this item is selected. */
    value: string;
    /** Disables this item. */
    disabled?: boolean;
}
PropTypeRequirementDescription
valuestringRequiredValue produced when this item is selected.
disabledbooleanOptionalDisables this item.
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.