2.5.0 • Published 6 years ago

@materialr/textfield v2.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

MaterialR TextField

@materialr/textfield

Build Status Coverage Status NSP Status semantic-release

Material textfield implementation for React

Installation

$ npm install --save @materialr/textfield

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Default export

import TextField from '@materialr/textfield';

Props

PropTypeRequiredDefaultDescription
boxboolNofalseWhether to render a box outline
classNamestringNoundefinedAdditional classNames to add
defaultValuestringNoundefinedThe default input value (uncontrolled element)
disabledboolNofalseWhether the input is disabled
fullWidthboolNofalseWhether the input is the full width of it's parent
helperTextstringNoundefinedThe helper text to render beneath the field
helperTextPersistentboolNofalseWhether the helper text is always visible
helperTextValidationMessageboolNofalseWhether the helper text is for a validation message
iconstringNoundefinedThe material icon to render to the start of the field
iconAlignEndboolNofalseWhether the icon is aligned to the end of the field
idstringNouuidv1()The id attribute of the field
labelstringYesN/AThe field's label
lengthMaximumnumberNoundefinedThe maximum length of the field (HTML5 validation)
lengthMinimumnumberNoundefinedThe minimum length of the field (HTML5 validation)
namestringNoundefinedThe name attribute of the input element
onBlurfuncNoundefinedThe blur event handler
onChangefuncNoundefinedThe change event handler
onDragStartfuncNoundefinedThe dragstart event handler
onDropfuncNoundefinedThe drop event handler
onFocusfuncNoundefinedThe focus event handler
onIconClickfuncNoundefinedThe event handler when clicking on the icon
onKeyUpfuncNoundefinedThe 'onkeyup' event handler
outlinedboolNofalseWhether to display the outline style field
requiredboolNofalseWhether the field is required (HTML5 validation)
typestringNotextThe field's type attribute (use textarea for a <textarea>)
validboolNoundefinedWhether the field is valid or not (manual validation)
valuestringNoundefinedthe value of the field
2.5.0

6 years ago

2.4.0

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago