Skip to content

Commit

Permalink
Add CSS variables to Storybook (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning authored Nov 16, 2023
1 parent 478893a commit 86cf3bc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/tooltip/tooltip.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@
title="Components/Tooltip"
component={Tooltip}
argTypes={{
'--leo-tooltip-padding': {
type: 'string',
description: 'The internal padding on the tooltip'
},
'--leo-tooltip-text-color': {
type: 'string',
control: 'color',
description: 'The text color for the tooltip'
},
'--leo-tooltip-background': {
type: 'string',
control: 'color',
description: 'The background color of the tooltip'
},
'--leo-tooltip-shadow': {
type: 'string',
description: 'The shadow effect for the tooltip'
},
text: { control: 'text', defaultValue: 'A helpful hint' },
mode: { control: 'select', options: modes, defaultValue: 'default' },
placement: { control: 'select', options: placements }
Expand Down

0 comments on commit 86cf3bc

Please sign in to comment.