Class: FloatingLabel

frontend~FloatingLabel(props)

A floating label input component. Cleanly transitions an input placeholder to a upper left floated label

Constructor

new FloatingLabel(props)

Initializes state and binds methods
Parameters:
Name Type Description
props Array.<any> Should contain any input classes, the input id, the label text, and optionally an onChange callback
Source:

Extends

  • React.Component

Methods

handleTextChange(event)

Event callback for input changes. Updates state to comply with React standard controlled input elements
Parameters:
Name Type Description
event object
Source:

render()

Renders a form input with all the required callback and id information nested within a div, and sibling to a label
Source: