@storm-stack/types
Version:
⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.
34 lines (33 loc) • 813 B
TypeScript
/**
* A utility type for specifying the type of an option for a Select or Radio form field.
*/
export interface SelectOption<T = string> {
/**
* The index of the select option
*/
index: number;
/**
* The string value to display in the field
*/
name: T;
/**
* The value stored behind the scenes when selected
*/
value: string | number | boolean;
/**
* The description of the select option
*/
description?: string;
/**
* A short string describing the status of the select option
*/
status?: string;
/**
* Is the option value valid for selection in the dropdown
*/
disabled: boolean;
/**
* Sets or retrieves whether the option in the list box is the default item.
*/
selected: boolean;
}