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

49 lines (48 loc) 1.8 kB
import React, { ReactNode } from 'react'; import { MenuProperties } 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 MenuProperties { autoWidth?: boolean; anchorEl?: object; disableAutoFocusItem?: boolean; MenuListProps?: object; onClose?: () => void; onEntered?: () => void; onEntering?: () => void; onExit?: () => void; onExited?: () => void; onExiting?: () => void; open?: boolean; PopoverClasses?: object; classes?: object; displayEmpty?: boolean; input?: ReactNode; MenuProps?: object; native?: boolean; renderValue?: any; value?: any; onChange?: any; disabled?: boolean; transitionDuration?: { enter?: number; exit?: number; }; } declare const BRMenu: React.StatelessComponent<MenuProperties & { open: boolean; }>; export default BRMenu; export { MenuProperties };