mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 05:39:05 +08:00
- Added @storybook/addon-themes to package.json and yarn.lock for theme support in Storybook. - Updated CustomCollapse component to utilize HeroUI's Accordion and AccordionItem for improved functionality and styling. - Removed the ReasoningIcon component as it was deemed unnecessary. - Enhanced ProviderAvatar component to ensure consistent className handling. - Added new stories for FileIcons, SvgSpinners180Ring, and ToolsCallingIcon to showcase their usage and variations.
19 lines
346 B
TypeScript
19 lines
346 B
TypeScript
import '../stories/tailwind.css'
|
|
|
|
import { withThemeByClassName } from '@storybook/addon-themes'
|
|
import type { Preview } from '@storybook/react'
|
|
|
|
const preview: Preview = {
|
|
decorators: [
|
|
withThemeByClassName({
|
|
themes: {
|
|
light: '',
|
|
dark: 'dark'
|
|
},
|
|
defaultTheme: 'light'
|
|
})
|
|
]
|
|
}
|
|
|
|
export default preview
|