accessibility-react-widget 2.0.1 → 2.0.3

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
@@ -38,6 +38,32 @@ export default function App() {
38
38
  }
39
39
  ```
40
40
 
41
+ ### Next.js (App Router)
42
+
43
+ The widget runs only on the client and is compatible with Next.js App Router. The published bundle includes the `"use client"` directive, so you can import it directly in Server Components (e.g. `layout.tsx`); Next.js will treat it as a client boundary.
44
+
45
+ ```js
46
+ // app/layout.tsx
47
+ import Accessibilik from 'accessibility-react-widget';
48
+
49
+ export default function RootLayout({ children }) {
50
+ return (
51
+ <html>
52
+ <body>
53
+ {children}
54
+ <Accessibilik />
55
+ </body>
56
+ </html>
57
+ );
58
+ }
59
+ ```
60
+
61
+ Alternatively, use the dedicated Next.js entry for an explicit client-only import:
62
+
63
+ ```js
64
+ import Accessibilik from 'accessibility-react-widget/next';
65
+ ```
66
+
41
67
  ## 🔥 Features
42
68
 
43
69
  ## Content