From edad1caa1fa1d911189fc4ed867f0b3af434f9dd Mon Sep 17 00:00:00 2001 From: Benji <64439681+benjitrosch@users.noreply.github.com> Date: Fri, 15 Apr 2022 12:31:21 -0400 Subject: [PATCH] chore(Tooltip): added stories (#89) --- src/Tooltip/Tooltip.stories.tsx | 119 +++++++++++++++++++++++++++++++- 1 file changed, 118 insertions(+), 1 deletion(-) 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, +}