A set of React components for Bulma
Here is a short list of most important features that @faramo.zayw/reabulma
has:
- 🚀 Minimum dependencies
- 🔨 Types out of the box
- 🔥 Storybook docs
This library uses features like destructuring assignment, for..of
and const/let
declarations and doesn't ship with ES5 transpiled sources. If you aim to support browsers like IE11 and below → make sure you run Babel over your node_modules
Using npm
npm i @faramo.zayw/reabulma bulma
Using yarn
yarn add @faramo.zayw/reabulma bulma
And by adding the following to your index.js:
import 'bulma/css/bulma.css';
import * as React from "react";
import * as ReactDOM from "react-dom";
import { Container, Title } from "@faramo.zayw/reabulma";
ReactDOM.render(
<Container>
<Title isSize="4">Hello World!</Title>
</Container>,
document.getElementById("root"),
);
Try to modify the webpack config in next.config.js
file to let the babel loader transpile the es6 dependency. You may want to use this package next-transpile-modules