Skip to content

Commit

Permalink
feat(story): added props to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrusoare committed Jan 24, 2025
1 parent 40a2034 commit cabf53f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions superset-frontend/src/components/Popover/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ const TRIGGERS = {
InteractivePopover.args = {
content: 'Popover sample content',
title: 'Popover title',
arrow: true,
open: false,
color: '#fff',
};

InteractivePopover.argTypes = {
Expand All @@ -78,4 +81,19 @@ InteractivePopover.argTypes = {
control: { type: 'select' },
options: TRIGGERS.options,
},
arrow: {
name: 'arrow',
control: { type: 'boolean' },
description: "Change arrow's visible state",
},
color: {
name: 'color',
control: { type: 'color' },
description: 'The background color of the popover.',
},
open: {
name: 'open',
control: { type: 'boolean' },
description: 'Whether the floating tooltip card is open or not.',
},
};

0 comments on commit cabf53f

Please sign in to comment.