Skip to content

Commit

Permalink
fix: put mode title back
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu committed Dec 25, 2024
1 parent 44c8dfe commit b02b868
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ export const globalTypes = {
defaultValue: 'light', // Default theme
toolbar: {
icon: 'circlehollow', // Toolbar icon in Storybook
items: ['light', 'dark'], // Available options
showName: true, // Display the selected option name
items: [
{ value: 'light', icon: 'sun', title: 'Light Mode' },
{ value: 'dark', icon: 'moon', title: 'Dark Mode' },
],
dynamicTitle: true,
},
},
};
Expand Down

0 comments on commit b02b868

Please sign in to comment.