Skip to content

Repository files navigation

Input

(inspired by Googles Material Design)
demo: git.tim-greller.de/input

Result

How to use

  1. Include the stylesheet:
    • If you provide the file yourself:
      <link rel="stylesheet" href="input.css">
    • If you want to include the latest version automatically without downloading anything from this repository:
      <link rel="stylesheet" href="https://tim-greller.de/git/input/input.css">
  2. Create an input with a custom label:
    <div class="input">
    <input id="myid" type="text" placeholder />
    <label for="myid">This is an input</label>
    </div>
    
    The input has to have either an empty placeholder, or the required attribute and has to be placed before its label.
  3. You can now adjust width, height, padding, border and margin of the input-div.

About

A lightweight and easy to use stylesheet to create Material Design input fields.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages