import { Meta, Story } from '@storybook/react'; import { PropsWithChildren } from 'react'; import { TextTip } from './TextTip'; export default { component: TextTip, title: 'Components/Tip/TextTip', } as Meta; function Template({ children, }: JSX.IntrinsicAttributes & PropsWithChildren) { return {children}; } export const Primary: Story> = Template.bind({}); Primary.args = { children: 'This is a text tip with children', };