Skip to content

Commit

Permalink
Update ItemTableAppBar stories
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 15, 2021
1 parent 9b75004 commit e267a69
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions src/components/ItemTableAppBar/ItemTableAppBar.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
import ItemTableAppBar from "./ItemTableAppBar";
import { ThemeProvider } from "@material-ui/styles";

<Meta
title="Components/ItemTableAppBar"
component={ItemTableAppBar}
argsTypes={{
setDarkMode: {
control: {
type: "object"
}
}
}}
/>

The ItemTableAppBar is the primary toolbar for the [ItemTable](/?path=/docs/components-itemtable--loading). It displays the application title and application wide actions.

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

export const Template = (props) => <ItemTableAppBar {...props} />

# Default

<Canvas>
<Story name="Default" args={{
title:"webqueue2",
darkmode:false
}}>
{args => <ItemTableAppBar {...args} />}
<Story
name="Default"
args={{
title:"webqueue2",
setDarkMode: _ => alert("Use the darkmode toggle in the toolbar above.")
}}
>
{ args => <ItemTableAppBar {...args} /> }
</Story>
</Canvas>

<ArgsTable of={ItemTableAppBar} />

0 comments on commit e267a69

Please sign in to comment.