0.9.0 • Published 7 months ago

@dracor/react v0.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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.

0.9.0

7 months ago

0.8.0

8 months ago

0.7.0

8 months ago