Entur component library
The Entur component library is a Storybook based app with set of React components common for all Entur React applications.
Getting started
- Clone project
npm install
to install dependenciesnpm run storybook
to run the Storybook app
Usage
The component library depends on a small set of global definitions; typography and rem size. These rules are defined in index.css
. For correct fonts add @entur/fonts
to your package.json
"dependencies": {
"@entur/fonts": "git+ssh://git@bitbucket.org:enturas/entur-fonts.git#a5e1956"
}
Adding rules to your project
// javascript
import '@entur/fonts/index.css'
import '@entur/component-library/lib/index.css'
// css
@import '~@entur/fonts/index.css'
@import '~@entur/component-library/lib/index.css'