vite-plugin-react-splash 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,7 +25,10 @@ export default defineConfig({
25
25
  plugins: [
26
26
  react(),
27
27
  viteSplashScreen({
28
- logo: `<svg ...>...</svg>`, // Your SVG string
28
+ logo: {
29
+ light: `<svg ...>...</svg>`, // Logo for light mode
30
+ dark: `<svg ...>...</svg>` // Logo for dark mode
31
+ },
29
32
  duration: 3000,
30
33
  text: 'Loading My Awesome App...',
31
34
  version: '1.0.0',
@@ -67,7 +70,7 @@ function App() {
67
70
 
68
71
  | Option | Type | Description |
69
72
  | --- | --- | --- |
70
- | `logo` | `string` | SVG string to display as the logo. |
73
+ | `logo` | `string \| { light: string, dark: string }` | SVG string or object with light/dark versions. |
71
74
  | `duration` | `number` | Time in ms before the splash screen automatically hides. |
72
75
  | `text` | `string` | Text to display below the logo. |
73
76
  | `version` | `string` | Version string to display at the bottom. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-react-splash",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A Vite plugin and React hook for easy splash screen management in React apps.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",