sku@11.9.0
seek-oss-ci
released this
18 Apr 04:34
·
175 commits
to master
since this release
Minor Changes
-
Re-export
Meta
andStoryObj
types from@storybook/react
(#773)The
Meta
andStoryObj
types are now re-exported undersku/@storybook/react
.These types are useful for typing CSF 3 stories which are the new recommended way of writing stories.
EXAMPLE USAGE:
import type { Meta } from 'sku/@storybook/react'; import { MyComponent } from './MyComponent'; const meta: Meta<typeof MyComponent> = { title: 'Path/To/MyComponent', component: MyComponent, }; export default meta; type Story = StoryObj<typeof MyComponent>; export const Basic: Story = {}; export const WithProp: Story = { render: () => <MyComponent prop="value" />, };