UNPKG

932 BTypeScriptView Raw
1import * as React from 'react';
2import { LabIcon } from '../icon';
3import { IElementRefProps } from './interface';
4export declare const HTML_SELECT_CLASS = "jp-HTMLSelect";
5export interface IOptionProps {
6 /**
7 * A space-delimited list of class names
8 */
9 className?: string;
10 /**
11 * Whether this option is non-interactive.
12 */
13 disabled?: boolean;
14 /**
15 * Label text for this option. If omitted, `value` is used as the label.
16 */
17 label?: string;
18 /**
19 * Value of this option.
20 */
21 value: string | number;
22}
23export interface IHTMLSelectProps extends IElementRefProps<HTMLSelectElement>, React.SelectHTMLAttributes<HTMLSelectElement> {
24 defaultStyle?: boolean;
25 iconProps?: LabIcon.IProps;
26 icon?: LabIcon;
27 options?: Array<string | number | IOptionProps>;
28}
29export declare class HTMLSelect extends React.Component<IHTMLSelectProps> {
30 render(): JSX.Element;
31}