chabou / ui-library

BlaBlaCar React component library

Home Page:https://blablacar.github.io/ui-library/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlaBlaCar React component library

Build Status

Installation

BlaBlaCar ui-library is available as an npm package

Just run this inside your project

npm i @blablacar/ui-library

Usage

Import the package into your package.json

"dependencies": {
    ...
    "@blablacar/ui-library": "<CURRENT_VERSION>",
    ...
}

then all you need to do is:

import { Button, Input } from '@blablacar/ui-library'

But again, don't forget that you need to have React to make it work.

For server-rendering purposes, just use the flushToHTML from styled-jsx that we export from the ui-library

import { flushToHTML } from '@blablacar/ui-library'

const index = `
  <!doctype html>
  <html>
    <head>
      ${title}
      ${flushToHTML()}
    </head>
    ...
  </html>
`

For more information, see directly the styled-jsx documentation

Changelog

Check the changelog to stay informed on all updates

Examples and documentation

You can find examples and tech documentation here.

Contributing

Wanna contribute ? This way. :)

License

This project is licensed under the terms of the MIT license.

About

BlaBlaCar React component library

https://blablacar.github.io/ui-library/

License:MIT License


Languages

Language:TypeScript 97.0%Language:JavaScript 2.5%Language:Shell 0.3%Language:CSS 0.2%