<RootStyleRegistry>
<RootStyleRegistry>
The <RootStyleRegistry> component provides support for Makeswift’s CSS-in-JS runtime.
Props
Optional prefix for Makeswift-generated CSS classes.
Toggle the built-in CSS reset. Set to false when using @layer-based CSS
frameworks like Tailwind. See this
guide
for more information.
When true, Makeswift-generated CSS declarations will include the
!important
qualifier,
helping them override conflicting styles from your site. Enable this if
external CSS prevents content from appearing as configured in Makeswift.
The children components to render.
Example
App Router
The following example shows how the <RootStyleRegistry> is used to implement the <MakeswiftProvider> client component as outlined in the App Router Installation guide. The <MakeswiftProvider> is subsequently utilized in the App Router’s root layout.