diff --git a/src/Tooltip/Tooltip.stories.tsx b/src/Tooltip/Tooltip.stories.tsx index aef5aa51..7b860d64 100644 --- a/src/Tooltip/Tooltip.stories.tsx +++ b/src/Tooltip/Tooltip.stories.tsx @@ -9,7 +9,7 @@ export default { component: Tooltip, } as Meta -export const Default: Story = (args) => { +const Template: Story = (args) => { return (
@@ -18,6 +18,123 @@ export const Default: Story = (args) => {
) } + +export const Default = Template.bind({}) Default.args = { message: 'hello', } + +export const ForceOpen = Template.bind({}) +ForceOpen.args = { + message: 'hello', + open: true, +} + +export const Bottom = Template.bind({}) +Bottom.args = { + message: 'hello', + open: true, + position: 'bottom' +} + +export const Left = Template.bind({}) +Left.args = { + message: 'hello', + open: true, + position: 'left' +} + +export const Right = Template.bind({}) +Right.args = { + message: 'hello', + open: true, + position: 'right' +} + +export const Colors: Story = (args) => { + return ( +
+ + + + + + + + + + + +
+ ) +} +Colors.args = { + open: true, +} + +export const Statuses: Story = (args) => { + return ( +
+ + + + + + + + + + + + + + + +
+ ) +} +Statuses.args = { + open: true, +}