mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
document deprecated API
This commit is contained in:
parent
a81dc1d660
commit
190d960497
@ -43,3 +43,17 @@ import Component from './Component';
|
||||
storiesOf('Component', module)
|
||||
.add('with some emoji', withNotes('A very simple component')(() => <Component></Component>));
|
||||
```
|
||||
|
||||
### Deprecated API
|
||||
This API is slated for removal in 4.0
|
||||
|
||||
```js
|
||||
import { WithNotes } from '@storybook/addon-notes';
|
||||
|
||||
storiesOf('Addon Notes', module)
|
||||
.add('using deprecated API', () => (
|
||||
<WithNotes notes="Hello">
|
||||
<BaseButton onClick={action('clicked')} label="😀 😎 👍 💯" />
|
||||
</WithNotes>
|
||||
));
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user