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;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
value | string | Required | Value produced when this item is selected. |
disabled | boolean | Optional | Disables this item. |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |