-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Siggery
committed
Nov 25, 2024
1 parent
c387ebf
commit ab693aa
Showing
3 changed files
with
80 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { Meta, StoryObj } from '@storybook/web-components'; | ||
import { html } from 'lit'; | ||
|
||
import '@justeattakeaway/pie-divider'; | ||
|
||
const meta: Meta = { | ||
title: 'Foo', | ||
component: 'pie-divider', | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj; | ||
|
||
export const Variant1: Story = { | ||
// 👇 This story will not appear in Storybook's sidebar or docs page | ||
tags: ['dev', '!autodocs'], | ||
args: { variant: 1 }, | ||
}; | ||
|
||
export const Variant2: Story = { | ||
// 👇 This story will not appear in Storybook's sidebar or docs page | ||
tags: ['dev', '!autodocs'], | ||
args: { variant: 2 }, | ||
}; | ||
|
||
export const Combo: Story = { | ||
// 👇 This story should not be tested, but will appear in the sidebar and docs page | ||
tags: ['!dev'], | ||
render: () => html` | ||
<div> | ||
<pie-divider></pie-divider> | ||
</div> | ||
`, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters