The Bootstrap Buttons Web Component
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitattributes
.gitignore
README.md
bower.json
index.html

README.md

<twbs-buttons>

The Twitter Bootstrap Buttons Web Component.

Demo

Check it live.

Install

Install the component using Bower:

$ bower install twbs-buttons --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
  1. Import Custom Element:
<link rel="import" href="bower_components/twbs-buttons/src/twbs-buttons.html">
  1. Start using it!
<twbs-buttons></twbs-buttons>

Options

Attribute Options Default Description
href string # The href attribute specifies the link's destination
tag a, button, input button Define the tag
type submit, button 12 Define the "input" type
value string Hello! Define the "input" value
size lg, sm, xs Button's size
block block block Create block level buttons
state active, disabled Button will appear pressed or unclickable

Browser Support

IE Chrome Firefox Opera Safari
IE 10+ ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Check Release list.

License

MIT License © Magno Valdetaro