bs-tags-react

1.0.1 • Public • Published

bs-tags-react

ReasonMl component of tags:

Installation

Need to install css-loader, node-sass, sass-loader, style-loader:

yarn add css-loader node-sass sass-loader style-loader --dev
yarn add bs-tags-react

E adicionar na bs config.json os modulo bs-tags-react:

"bs-dependencies": [
 "bs-tags-react"
]

Then add it to webpack.config.js under plugins:

 module: {
    rules: [
      {
        test: /\.scss$/,
        use: ["style-loader", "css-loader", "sass-loader"]
      },
      {
        test: /\.svg$/,
        use: ["@svgr/webpack"]
      }
    ]
  },

Usage

open BsTagsReact;

[@react.component]
let make = () => {
  let (tags, setTags) = React.useState(() => []);

  <BsTagsReact.Tag tags setTags />;
};

Package Sidebar

Install

npm i bs-tags-react

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.43 MB

Total Files

15

Last publish

Collaborators

  • adrissongalvao