BlaBlaCar ui-library
is available as an npm package
Just run this inside your project
npm i @blablacar/ui-library
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
Check the changelog to stay informed on all updates
You can find examples and tech documentation here.
Wanna contribute ? This way. :)
This project is licensed under the terms of the MIT license.