mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-12-23 00:57:44 +00:00
[12/n][Storybook] OverflownText update argTypes (#49)
This commit is contained in:
commit
550ef91968
@ -13,6 +13,9 @@ const meta: Meta<typeof OverflownText> = {
|
|||||||
children: {
|
children: {
|
||||||
control: 'text',
|
control: 'text',
|
||||||
},
|
},
|
||||||
|
tooltipProps: {
|
||||||
|
control: 'object',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -21,8 +24,10 @@ export default meta;
|
|||||||
type Story = StoryObj<typeof OverflownText>;
|
type Story = StoryObj<typeof OverflownText>;
|
||||||
|
|
||||||
export const Default: Story = {
|
export const Default: Story = {
|
||||||
render: ({ children, content }) => (
|
render: ({ children, content, ...args }) => (
|
||||||
<OverflownText content={content}>{children}</OverflownText>
|
<OverflownText content={content} {...args}>
|
||||||
|
{children}
|
||||||
|
</OverflownText>
|
||||||
),
|
),
|
||||||
args: {
|
args: {
|
||||||
children:
|
children:
|
||||||
|
Loading…
Reference in New Issue
Block a user