Skip to content

Commit

Permalink
Update ItemViewAppBar stories
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 19, 2021
1 parent c49e9d6 commit 6a1f821
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/components/ItemViewAppBar/ItemViewAppBar.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
import ItemViewAppBar from "./ItemViewAppBar";

The ItemViewAppBar is the primary toolbar for the [ItemView](/?path=/docs/components-itemview--with-item). It displays the item title and action for closing the sidebar.
<Meta
title="Components/ItemViewAppBar"
component={ItemViewAppBar}
/>

<Meta title="Components/ItemViewAppBar" component={ItemViewAppBar}/>



# Default Usage
The ItemViewAppBar is the primary toolbar for the [ItemView](/?path=/docs/components-itemview). It displays the active item's title and action for closing the sidebar.

<Canvas>
<Story name="Default" args={{
title:"ce 100",
setSidebarOpen:() => null
}}>
{args => <ItemViewAppBar {...args} />}
<Story
name="Default"
args={{
title: "ce 100",
setSidebarOpen: _ => null
}}
>
{ args => <ItemViewAppBar {...args} /> }
</Story>
</Canvas>
</Canvas>

<ArgsTable of={ItemViewAppBar} />

0 comments on commit 6a1f821

Please sign in to comment.