@mmmmzxe/react-360-viewer 0.1.14 → 0.1.15

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 CHANGED
@@ -26,9 +26,26 @@ npm install @mmmmzxe/react-360-viewer
26
26
  npm install react react-dom lucide-react
27
27
  ```
28
28
 
29
+ ### Styles
30
+
31
+ Import the stylesheet once in your app (e.g. in your root layout or entry file):
32
+
33
+ ```tsx
34
+ import '@mmmmzxe/react-360-viewer/styles.css';
35
+ ```
36
+
37
+ Styles are scoped to `[data-viewer-360]` and will not override your app's global theme. Requires a **client component** in Next.js App Router (`'use client'`).
38
+
39
+ If styles don't appear after updating, delete `.next` and restart the dev server.
40
+
41
+ ---
42
+
29
43
  ## Quick Start
30
44
 
31
45
  ```tsx
46
+ 'use client';
47
+
48
+ import '@mmmmzxe/react-360-viewer/styles.css';
32
49
  import { useState } from "react";
33
50
  import {
34
51
  Viewer360,