This package has been deprecated

Author message:

Use the design system packages instead: https://design.entur.org

@entur/component-library

0.30.0 • Public • Published

Entur component library

The Entur component library is a Storybook based app with set of React components common for all Entur React applications.

It is served here: https://entur-component-library-ae8fd.firebaseapp.com

Installation

npm install --save @entur/component-library

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"
}

Remember to run npm install after adding the line.

You will also need to import the rules in your code:

// 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'

Development

Getting started

  • Clone project
  • npm install to install dependencies
  • npm run storybook to run the Storybook app

Publish

npm run deploy

Readme

Keywords

none

Package Sidebar

Install

npm i @entur/component-library

Weekly Downloads

10

Version

0.30.0

License

EUPL-1.2

Unpacked Size

1.09 MB

Total Files

428

Last publish

Collaborators

  • phun-ky
  • ceciliehrr
  • tysseng-entur
  • martinbjerkeengen
  • frankwaldal
  • carljoachim
  • oysval
  • magnusrand
  • wfeiring
  • vages
  • enturas
  • kentandersen
  • testower