A simple and flexible <Button>
Glimmer component, with built-in Bootstrap 4 and FontAwesome 5 integration.
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
ember install @gavant/ember-button-basic
NOTE: This addon uses FontAwesome 5 (@fortawesome/ember-fontawesome) for icon support. However it does NOT install any icon set packages. You must install these separately, following the addon's installation guide, e.g.
yarn add --dev @fortawesome/free-solid-svg-icons
An example <Button>
usage, with all available arguments used. None of the component arguments are required, but in most cases you'll either want to provide a @label
and/or @icon
, or block content, and a click @action
.
Using standard Glimmer component conventions, you can easily extend this component to add more advanced functionality. For example:
See the Contributing guide for details.
This project is licensed under the MIT License.