0.0.10 • Published 7 years ago

mn-button v0.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

npm version Dependency Status MIT Licence

mn-button

Buttons flat, raised, and action, with a minimalist design.

See the demo

Install

# to install this module
npm install --save mn-button

And bundle dependencies and main files in dist/ with your preferred tool.

Usage

And then, in your html, you can use the class .mn-button in buttons or anchor tags, i.e.

<button class="mn-button">Simple button</button>

<a href="#" class="mn-button">Other Simple button</a>

You can use the class .mn-button with others class, .raised, and .action.

  • .raised - to make a button with 3d depth
  • .action - to make rounded buttons, with an icon replacement the text

Raised button example

<button class="mn-button raised">Raised button</button>

Action button examples

<button class="mn-button action"><<!-- icon here --></button>

Action and raised button example

<button class="mn-button action raised"><<!-- icon here --></button>

Note

Sometimes you use tag <button> inside a form without apply an attribute type. By default, browsers set the type for buttons inside a form as submit. This compinent override that tags buttons inside a form, without an attribute type, will be setted to button instead submit.

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago