shadcn-data-views 1.0.1 → 1.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,10 +38,21 @@ pnpm add shadcn-data-views
38
38
 
39
39
  ### Setup
40
40
 
41
- The package includes its own styles. Import the CSS file in your root layout or main entry file:
41
+ The package now injects its own styles automatically. You do NOT need to import a CSS file.
42
+
43
+ **Important**: This package uses `next-themes` for dark mode support. You **must** wrap your application (or the component) in a `ThemeProvider` to enable theme switching.
42
44
 
43
45
  ```tsx
44
- import 'shadcn-data-views/styles.css';
46
+ // Example in a Next.js app (providers.tsx)
47
+ import { ThemeProvider } from 'next-themes';
48
+
49
+ export function Providers({ children }) {
50
+ return (
51
+ <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
52
+ {children}
53
+ </ThemeProvider>
54
+ );
55
+ }
45
56
  ```
46
57
 
47
58
  ### Basic Example