This Ember addon provides the buttons and buttons with icons components of the Ticketfly UI library. View demo
- tf-button component with svg icons
- Refactor some styles to ticketfly-css
ember install ember-ticketfly-buttons
If you are using this in an addon: in package.json
, move ember-ticketfly-buttons
from devDependencies
to dependencies
.
tf-button
component:
- Pass
weightGroup
andcolorGroup
properties to configure the button categories. - Pass
disabled
property to alter the button state.
Button Categories
Template:
Resulting HTML:
<button class="c-tf-button c-tf-button--primary c-tf-button--neutral">Solid indigo button</button>
<button class="c-tf-button c-tf-button--secondary c-tf-button--positive">Solid green button</button>
Button States
Template:
Resulting HTML:
<button class="c-tf-button">Active button</button>
<button class="c-tf-button" disabled=true>Disabled button</button>
git clone <repository-url>
this repositorycd ember-ticketfly-buttons
npm install
bower install
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.