Skip to content

Commit

Permalink
ThemeProvider as Root
Browse files Browse the repository at this point in the history
  • Loading branch information
r100-stack committed Feb 4, 2025
1 parent fa0a6bb commit 30752e8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions apps/react-workshop/.ladle/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ export const Provider: GlobalProvider = ({ children }) => {

return (
<React.StrictMode>
<ITwinUiV5Root colorScheme={theme} density='dense'>
<ThemeProvider
theme={theme}
themeOptions={{
applyBackground: false,
highContrast,
}}
future={{
themeBridge: futureThemeBridge,
}}
>
{children}
</ThemeProvider>
</ITwinUiV5Root>
<ThemeProvider
as={ITwinUiV5Root}
colorScheme={theme}
density='dense'
theme={theme}
themeOptions={{
applyBackground: false,
highContrast,
}}
future={{ themeBridge: futureThemeBridge }}
synchronizeColorScheme
>
{children}
</ThemeProvider>
</React.StrictMode>
);
};
Expand All @@ -86,6 +86,6 @@ export const argTypes = {
},
'future.themeBridge': {
control: { type: 'boolean' },
defaultValue: false,
defaultValue: true,
},
};

0 comments on commit 30752e8

Please sign in to comment.