Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SelectValue

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

Import

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

Declaration

export const SelectValue: HostComponent<SelectValueProps>;

SelectValueProps

Props accepted by the selected-value display.

export interface SelectValueProps extends HostComponentProps {
    /** Content shown while no value is selected. */
    placeholder?: HostNode;
}
PropTypeRequirementDescription
placeholderHostNodeOptionalContent shown while no value is selected.
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.