Import
import { Select } from "@dartwic/interface-sdk/ui";Declaration
export const Select: HostComponent<SelectProps>;SelectProps
Props accepted by the select root.
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;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
value | string | Optional | Controlled selected value. |
defaultValue | string | Optional | Initial uncontrolled selected value. |
onValueChange | (value: string) => void | Optional | Called with the newly selected value. |
disabled | boolean | Optional | Disables selection. |