eurostar-action
v1.0.39
Published
This component is a styled link or button.
Downloads
15
Readme
Eurostar Action component
There are several types of buttons on Eurostar.com, each of which is suited for specific contexts. The button styles below are listed in the order of prominence they’d normally have in the interface, starting from the most prominent ones (or the most “loud” ones if we were to put it on a "visual loudness scale").
Installation
$ npm install eurostar-action
Base Styles
must be installed in order to use the component. For more detailed explaination please review the Styleguide README here.
Usage
We have several variants for the
action
. Depending on which one you require, extract the HTML markup as defined underExpand Markup
under the specific variant type: (https://style.eurostar.com/components/detail/action.html)Import styles:
// Using JSPM:
@import "jspm:eurostar-action/action";
// Using Webpack:
@import "~eurostar-action/_action.scss";
- Import JS and Component Initialisation:
// Using JSPM:
import Action from 'eurostar-action/action';
const action = new Action();
// Using Webpack / React:
const Action = require("eurostar-action").default;
new Action();