@rocket.chat/fuselage 0.32.0-dev.177 → 0.32.0-dev.179
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 +15 -0
- package/dist/fuselage.development.js +1 -1
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -110,3 +110,18 @@ yarn storybook
|
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
<!--/yarn(storybook)-->
|
|
113
|
+
|
|
114
|
+
### Usage
|
|
115
|
+
|
|
116
|
+
Note: If you are using Next.js for development and wish to use Rocket.Chat Fuselage components, you need to dynamically import the component. More on this can be found [here](https://dev.to/vvo/how-to-solve-window-is-not-defined-errors-in-react-and-next-js-5f97#3-third-solution-dynamic-loading).
|
|
117
|
+
|
|
118
|
+
Usage Example:
|
|
119
|
+
|
|
120
|
+
```javascript
|
|
121
|
+
import dynamic from 'next/dynamic';
|
|
122
|
+
|
|
123
|
+
export const TextInput = dynamic(
|
|
124
|
+
() => import('@rocket.chat/fuselage').then((module) => module.TextInput),
|
|
125
|
+
{ ssr: false }
|
|
126
|
+
);
|
|
127
|
+
```
|