@dracor/react 1.0.0-rc.5 → 1.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -33
- package/dist/components/ApiDoc/ApiDoc.d.ts +1 -1
- package/dist/index.es.js +140 -141
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -23,41 +23,10 @@ Tailwind theme and make the tailwind compiler aware of the utility classes the
|
|
|
23
23
|
DraCor components are using:
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
|
-
@import
|
|
27
|
-
@source
|
|
26
|
+
@import '@dracor/react/dracor.css';
|
|
27
|
+
@source '../node_modules/@dracor/react';
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
### React Helmet integration
|
|
31
|
-
|
|
32
|
-
Several components optionally integrate with
|
|
33
|
-
[React Helmet](https://github.com/staylor/react-helmet-async), which is a peer
|
|
34
|
-
dependency of this package:
|
|
35
|
-
|
|
36
|
-
```sh
|
|
37
|
-
npm i react-helmet-async
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
If you intend to make use of this integration you need to set up the
|
|
41
|
-
`HelmetProvider`:
|
|
42
|
-
|
|
43
|
-
```jsx
|
|
44
|
-
// index.tsx
|
|
45
|
-
import { HelmetProvider } from 'react-helmet-async';
|
|
46
|
-
import App from './App';
|
|
47
|
-
|
|
48
|
-
const root = ReactDOM.createRoot(
|
|
49
|
-
document.getElementById('root') as HTMLElement
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
root.render(
|
|
53
|
-
<HelmetProvider>
|
|
54
|
-
<App />
|
|
55
|
-
</HelmetProvider>
|
|
56
|
-
)
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
See https://github.com/staylor/react-helmet-async#usage for details.
|
|
60
|
-
|
|
61
30
|
## Publication
|
|
62
31
|
|
|
63
32
|
To release a new version to npmjs.com you need to be a member of the
|