@dracor/react
v0.9.0
Published
DraCor react component library
Downloads
1
Readme
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/react
# or
yarn add @dracor/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/react/**/*.js',
'./src/**/*.{js,jsx,ts,tsx}',
],
plugins: [
// main DraCor Tailwindcss customization
require('@dracor/react/tailwind'),
// support CETEIcean markup in the TEIText component
require('@dracor/react/ceteicean'),
],
// ... your customisations
};
Publication
To release a new version to npmjs.com you need to be a member of the dracor organization.
yarn release
License
The components and documentation of this project are released under the MIT License.