fixes for issue 14218

This commit is contained in:
jonniebigodes 2021-05-12 19:33:26 +01:00
parent 7472450a83
commit f06074924c
4 changed files with 6 additions and 6 deletions

View File

@ -62,12 +62,12 @@ If you're coming from the `storiesOf` format, there's [a codemod that adds it fo
Sometimes it's useful to document multiple components on the same page. For example, suppose your component library contains `List` and `ListItem` components that don't make sense without one another. `DocsPage` has the concept of a "primary" component with the [`component` parameter](#component-parameter), and can also accept one or more "subcomponents":
```js
import { List, ListHeading, ListItem } from './List';
import { Button, ButtonGroup } from '../ButtonGroup';
export default {
title: 'Path/to/List',
component: List,
subcomponents: { ListHeading, ListItem },
title: 'Path/to/ButtonGroup',
component: ButtonGroup,
subcomponents: { Button },
};
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -40,7 +40,7 @@ with unique URLs, which is great for review and testing.
<Canvas>
<Story name="warning" args={{
status: warning,
status: 'warning',
label: 'Warning'
}}>
{Template.bind({})}
@ -58,7 +58,7 @@ with unique URLs, which is great for review and testing.
{Template.bind({})}
</Story>
<Story name="with icon" args={{
status: warning,
status: 'warning',
label: (<Icon icon="check" inline /> with icon)
)}}>
{Template.bind({})}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 71 KiB