diff --git a/stories/cosmoz-bottom-bar.stories.ts b/stories/cosmoz-bottom-bar.stories.ts new file mode 100644 index 0000000..b25f015 --- /dev/null +++ b/stories/cosmoz-bottom-bar.stories.ts @@ -0,0 +1,70 @@ +import type { Meta, StoryObj } from '@storybook/web-components'; +import { html } from 'lit-html'; +import '../src/cosmoz-bottom-bar-next'; +import '@polymer/paper-button/paper-button.js'; + +const CosmozBottomBar = ({ + active, + hideButton1, + hideButton2, + hideButton3, + hideButton4, + hideButton5, +}: { + active?: boolean; + hideButton1?: boolean; + hideButton2?: boolean; + hideButton3?: boolean; + hideButton4?: boolean; + hideButton5?: boolean; +}) => { + return html` + Bottom bar demo + Button 1 + Button 2 + Button 3 + Button 4 + Button 5 + `; +}; + +const meta: Meta = { + title: 'Cosmoz Bottom Bar', + render: CosmozBottomBar, + argTypes: { + active: { control: 'boolean' }, + hasMenuItems: { control: 'boolean' }, + maxToolbarItems: { control: 'number' }, + hideButton1: { control: 'boolean' }, + hideButton2: { control: 'boolean' }, + hideButton3: { control: 'boolean' }, + hideButton4: { control: 'boolean' }, + hideButton5: { control: 'boolean' }, + }, + parameters: { + docs: { + description: { + component: 'The Cosmoz Bottom Bar web component', + }, + }, + }, +}; + +export default meta; + +export const Basic: StoryObj = { + args: { + active: true, + }, + parameters: { + docs: { + description: { + story: 'The basic version', + }, + }, + }, +};