UNPKG

@blueprintjs/core

Version:
34 lines (33 loc) 1.43 kB
import * as React from "react"; import { AbstractPureComponent2 } from "../../common"; import { IElementRefProps, OptionProps } from "../../common/props"; import { IconProps } from "../icon/icon"; export declare type HTMLSelectProps = IHTMLSelectProps; /** @deprecated use HTMLSelectPRops */ export interface IHTMLSelectProps extends IElementRefProps<HTMLSelectElement>, React.SelectHTMLAttributes<HTMLSelectElement> { /** Whether this element is non-interactive. */ disabled?: boolean; /** Whether this element should fill its container. */ fill?: boolean; /** Props to spread to the `<Icon>` element. */ iconProps?: Partial<IconProps>; /** Whether to use large styles. */ large?: boolean; /** Whether to use minimal styles. */ minimal?: boolean; /** Multiple select is not supported. */ multiple?: never; /** Change event handler. Use `event.currentTarget.value` to access the new value. */ onChange?: React.ChangeEventHandler<HTMLSelectElement>; /** * Shorthand for supplying options: an array of basic types or * `{ label?, value }` objects. If no `label` is supplied, `value` * will be used as the label. */ options?: Array<string | number | OptionProps>; /** Controlled value of this component. */ value?: string | number; } export declare class HTMLSelect extends AbstractPureComponent2<HTMLSelectProps> { render(): JSX.Element; }