flowbite-react@0.12.0
·
20 commits
to main
since this release
Minor Changes
-
#1566
7b79b18
Thanks @SutuSebastian! - # Breaking changes- removed
flowbite-react patch
CLI command
Changes
flowbite-react/.gitignore
,flowbite-react/config.json
self manages, regenerates and repairs- new generated file
init.(jsx|tsx)
in.flowbite-react/
directory that syncs up values fromconfig.json
that also are needed in React app runtime (similar to how a React context works)- synced on CLI commands:
init
,build
,dev
,register
- synced on CLI commands:
- If you have custom configuration in
.flowbite-react/config.json
(differentdark
/prefix
/version
values), you must render<ThemeInit />
at the root level of your app to sync runtime with node config values- notify users to include
<ThemeInit />
at the root level if customdark
,prefix
, orversion
values are detected in the configuration file
- notify users to include
- expose
flowbite-react/store
import path - check if
flowbite-react
is installed whennpx flowbite-react@latest init
- bump the version to latest if below
0.11.x
- bump the version to latest if below
- remove redundant
{ flag: "w" }
infs.writeFile
- update
dark-mode.md
andprefix.md
documentation to reflect the<ThemeInit />
changes - add Tailwind CSS version support in theme mode handling and fix dark theme toggle class in Tailwind CSS v4
Migration Guide
-
Remove
flowbite-react patch
from yourpackage.json
{ "scripts": { - "postinstall": "flowbite-react patch" } }
-
Add
<ThemeInit />
(import from.flowbite-react/init.(jsx|tsx)
) at the root level of your app if you have custom configuration in.flowbite-react/config.json
(differentdark
/prefix
/version
values).
- removed