[12/n][Storybook] OverflownText update argTypes (#49)

This commit is contained in:
Vivian Phung 2024-05-14 17:33:41 -04:00 committed by GitHub
commit 550ef91968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,9 @@ const meta: Meta<typeof OverflownText> = {
children: {
control: 'text',
},
tooltipProps: {
control: 'object',
},
},
};
@ -21,8 +24,10 @@ export default meta;
type Story = StoryObj<typeof OverflownText>;
export const Default: Story = {
render: ({ children, content }) => (
<OverflownText content={content}>{children}</OverflownText>
render: ({ children, content, ...args }) => (
<OverflownText content={content} {...args}>
{children}
</OverflownText>
),
args: {
children: