primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
46 lines (43 loc) • 865 B
TypeScript
/**
*
* This module contains the interface and types for options in a select component.
*
* @module selectitem
*
*/
import { IconType } from '../utils';
/**
* Custom options type.
*/
export type SelectItemOptionsType = SelectItem[] | any[];
/**
* Defines valid properties in SelectItem component.
* @group Properties
*/
export interface SelectItem {
/**
* Label of the option.
*/
label?: string;
/**
* Value of the option.
*/
value?: any;
/**
* ClassName of the option.
*/
className?: string;
/**
* Icon to display to the option.
*/
icon?: IconType<SelectItem>;
/**
* Tooltip text of the option. (Not supported)
*/
title?: string;
/**
* Whether the option is disabled or not. (Not supported)
* @defaultValue false
*/
disabled?: boolean;
}