@vcl/material-style-inputs

0.6.3 • Public • Published

VCL material-style-inputs

Material design style inputs.

Features

  • Adapt the standard input styling such that there is only a border on the bottom.
  • Animated form labels which overlay the input to reduce visual clutter

Usage

By default the label is rendered over the input

Basic

The label must float by adding the vclMaterialFloatingLabel if the input has any value or a placeholder

Floating

A focused input must also have the vclMaterialFocused class

Focused

The embedded input group needs a modifier class for correct label positioning

EmbeddedInputGroup

Classes

  • vclMaterial

Modifiers

  • vclMaterialFloatingLabel
  • vclMaterialFocused
  • vclMaterialInputGroupEmbPrepItem

Demo

example.html on GH-pages.

Package Sidebar

Install

npm i @vcl/material-style-inputs

Weekly Downloads

1

Version

0.6.3

License

MIT

Unpacked Size

42.3 kB

Total Files

13

Last publish

Collaborators

  • marcode95
  • vanthome
  • dani723
  • vilsol
  • jurgis-upenieks