chore: improve storybook (#27111)

This commit is contained in:
非法操作
2025-10-20 10:17:17 +08:00
committed by GitHub
parent 7e9be4d3d9
commit dc1a380888
8 changed files with 974 additions and 762 deletions

View File

@@ -1,5 +1,4 @@
import type { Meta, StoryObj } from '@storybook/react'
import { fn } from '@storybook/test'
import type { Meta, StoryObj } from '@storybook/nextjs'
import { RocketLaunchIcon } from '@heroicons/react/20/solid'
import { Button } from '.'
@@ -20,8 +19,7 @@ const meta = {
},
args: {
variant: 'ghost',
onClick: fn(),
children: 'adsf',
children: 'Button',
},
} satisfies Meta<typeof Button>
@@ -33,6 +31,9 @@ export const Default: Story = {
variant: 'primary',
loading: false,
children: 'Primary Button',
styleCss: {},
spinnerClassName: '',
destructive: false,
},
}