UNPKG

@blueeast/bluerain-plugin-material-ui

Version:

Adds [Material UI](http://www.material-ui.com/#/) theme Provider to BlueRain. Components of material-ui have been developed using a common interface. [https://blueeast.gitbook.io/bluerain-plugin-material-ui](https://blueeast.gitbook.io/bluerain-plugin-mat

36 lines (35 loc) 1.55 kB
import React, { ReactNode } from 'react'; import { PickerProperties } from '@blueeast/bluerain-ui-interfaces'; /** * The props of DropDown Component * @param {boolean} props.autoWidth for Auto width. * @param {Object} props.classes style object for DopDown style. * @param {boolean} props.displayEmpty If true, the selected item is displayed even if its value is empty. * You can only use it when the native property is false (default).. * @param {ReactNode} props.input An Input element; does not have to be a material-ui specific Input. * @param {Object} props.MenuProps Properties applied to the Menu element. * @param {boolean} props.native If true, the component will be using a native select element. * @param {Node} props.renderValue Render the selected value. * You can only use it when the native property is false (default). * @param {Node} props.value The input value, required for a controlled component. * @param {boolean} props.disabled disables the selection. */ export interface MUIPickerProperties extends PickerProperties { autoWidth?: boolean; classes?: object; displayEmpty?: boolean; input?: ReactNode; MenuProps?: object; native?: boolean; renderValue?: any; value?: any; onChange?: any; inputprops?: object; disabled?: boolean; onOpen?: (event: object) => void; open?: boolean; SelectDisplayProps?: object; variant?: 'standard' | 'outlined' | 'filled'; } declare const DropDown: React.StatelessComponent<MUIPickerProperties>; export default DropDown;