geometricpanda / storybook-addon-badges

An addon for Storybook which allows the addition of badges to your Stories
https://geometricpanda.github.io/storybook-addon-badges/
MIT License
9 stars 7 forks source link

How to add tooltip in MDX? #5

Closed tomasvn closed 1 year ago

tomasvn commented 1 year ago

How do you pass in tooltip config? In the example is only using badges. Also facing same problem after upgrading to 1.0.1, downgrading back to 0.2.2 #4

import { Meta } from '@storybook/addon-docs/blocks';
import { BADGE } from '@geometricpanda/storybook-addon-badges';

<Meta title="Path/To/MyComponent" parameters={{ badges: [BADGE.BETA] }} />;
geometricpanda commented 1 year ago

So as far as the tooltip config goes, you set that in your preview.js when configuring the badge i'm just resolving the issue with the import path right now

geometricpanda commented 1 year ago

This should be resolved now, please re-open if you're still experiencing issues