1.0.13 • Published 9 months ago
@odx/websites-react v1.0.13
ODX Website React Component Library
General
ODX Website React Component Library based on Tailwind.
Installation 🚀
- Install package:
pnpm add -D @odx/websites-react
- Install odxwebsite ui package:
pnpm add -D @odx/websites-ui
- Install peer dependency:
pnpm add -D tailwindcss
- Init tailwind:
npx tailwindcss init
- Add odxwebsite ui tailwind preset and import the content module in your content configuration to prevent Tailwind from purging its styles:
import preset from '@odx/websites-ui/tailwind';
import content from '@odx/websites-react/tailwind-lib-content';
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [require('@odx/websites-ui/tailwind')],
content: [...content],
theme: {
extend: {},
},
plugins: [],
}
- Import the global styles including the @tailwind directives for each of Tailwind’s layers to your main CSS file. You can import the Global styles in your main JS file like this:
import '@odx/websites-ui/style';
Usage
The React package is a collection of React components that are structured with the following entry points:
@odx/websites-react/components
- General components@odx/websites-react/web
- Dräger Website specific components@odx/websites-react/icons
- Icons (as react components)@odx/websites-react/hooks
- React hooks
You can import and use components like this in your project:
import { Button } from '@odx/websites-react/components';
Live demo ⭐
Please refer to our Storybook, to see the components in action and to get further information.
Technologies
1.0.13
9 months ago
1.0.12
9 months ago
1.0.11
9 months ago
1.0.9
9 months ago
1.0.10
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.2
10 months ago
1.0.3
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago
0.1.1
11 months ago
0.1.0
11 months ago
0.0.8
11 months ago
0.0.7
11 months ago
0.0.6
12 months ago
0.0.5
12 months ago
0.0.4
12 months ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago