Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
[email protected]
Minor Changes
#1566
7b79b18
Thanks @SutuSebastian! - # Breaking changesflowbite-react patch
CLI commandChanges
flowbite-react/.gitignore
,flowbite-react/config.json
self manages, regenerates and repairsinit.(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)init
,build
,dev
,register
.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<ThemeInit />
at the root level if customdark
,prefix
, orversion
values are detected in the configuration fileflowbite-react/store
import pathflowbite-react
is installed whennpx flowbite-react@latest init
0.11.x
{ flag: "w" }
infs.writeFile
dark-mode.md
andprefix.md
documentation to reflect the<ThemeInit />
changesMigration 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).