0.6.0 • Published 10 months ago
@dracor.org/react v0.6.0
dracor-react
The DraCor React Component Library provides reusable react components for various DraCor and related projects.
The components are documented in storybook.
Installation
First add the DraCor React components to your react project:
npm i @dracor.org/react
# or
yarn add @dracor.org/react
Then adjust your tailwind.config.js to make the DraCor styles available to your project:
// tailwind.config.js
module.exports = {
// make the library available to the tailwind compiler
content: [
'./node_modules/@dracor.org/react/**/*.js',
'./src/**/*.{js,jsx,ts,tsx}',
],
// add the DraCor Tailwindcss plugin
plugins: [require('@dracor.org/react/tailwind')],
// ... your customisations
};
Publication
To release a new version to npmjs.com you need to be a member of the dracor.org organization.
yarn release
License
The components and documentation of this project are released under the MIT License.