Skip to content

mvaldetaro/twbs-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<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

About

The Bootstrap Buttons Web Component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages