npm install --save email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org @email@example.com @reactioncommerce/components
yarn add firstname.lastname@example.org email@example.com firstname.lastname@example.org email@example.com @firstname.lastname@example.org @reactioncommerce/components
Note that the minimum required React version is 16.4.1 because this package uses newer APIs like
styled-components packages are peer dependencies, which means that you must install the proper versions in your app. They are not included with this package.
If you use the
StripeFormcomponent, then you must also install
email@example.com. It is an optional peer dependency.
Then import a component:
import Button from "@reactioncommerce/components/Button/v1";
Notice that you must specify what version of the component you want. If you update to a newer minor or patch release of the
@reactioncommerce/components package, none of your components will change by default. You will also have to change where you import them from, for example, change
v2. Occasionally we will release a new major version of the package, and some of the older component versions may disappear.
In your HTML:
// Font for display type <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,600,700" rel="stylesheet">