@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
44 lines (43 loc) • 1.6 kB
TypeScript
import React, { ReactNode } from 'react';
import { TextInputProperties } from '@blueeast/bluerain-ui-interfaces';
/**
* The props of IMaterialTextInput Component
* @param {string} props.autoComplete for auto complete
* @param {string} props.autoCorrect for auto correct
* @param {string} props.id id of the text input
* @param {string} props.label label of input
* @param {any} props.className classes to style text input
* @param {enum} props.margin normal or dense
* @param {boolean} props.required boolean to make text input a required field
* @param {boolean} props.error If true, the label will be displayed in an error state.
* @param {string} props.type Type attribute of the Input element. It should be a valid HTML5 input type.
*/
export interface MUITextInputProperties extends TextInputProperties {
autoComplete?: string;
autoCorrect?: string;
id?: string;
label?: ReactNode | string;
className?: any;
margin?: 'none' | //
'dense' | //
'normal';
required?: boolean;
error?: boolean;
type?: string;
rowsMax?: string | number;
rows?: string | number;
helperText?: ReactNode;
InputLabelProps?: object;
fullWidth?: boolean;
errorText?: ReactNode;
defaultValue?: string;
FormHelperTextProps?: object;
inputProps?: object;
inputRef?: () => void | object;
name?: string;
select?: boolean;
SelectProps?: object;
variant?: 'standard' | 'outlined' | 'filled' | any;
}
declare const BlueRainTextInput: React.StatelessComponent<MUITextInputProperties>;
export default BlueRainTextInput;