Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SelectProps

Props accepted by the select root.

Import

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

Declaration

export interface SelectProps extends HostComponentProps {
    /** Controlled selected value. */
    value?: string;
    /** Initial uncontrolled selected value. */
    defaultValue?: string;
    /** Called with the newly selected value. */
    onValueChange?: (value: string) => void;
    /** Disables selection. */
    disabled?: boolean;
}

Members

NameTypeRequirementDescription
valuestringOptionalControlled selected value.
defaultValuestringOptionalInitial uncontrolled selected value.
onValueChange(value: string) => voidOptionalCalled with the newly selected value.
disabledbooleanOptionalDisables selection.