Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SelectItem

Selectable value item.

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.