-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fabian Gaukler
committed
Nov 15, 2024
1 parent
3891484
commit 038daa1
Showing
4 changed files
with
25 additions
and
131 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
packages/documentation/src/elements/button/button-primary.stories.ts
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
packages/documentation/src/elements/button/button-secondary.stories.ts
This file was deleted.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
packages/documentation/src/elements/button/button.stories.ts
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,24 @@ | ||
import type { Meta, StoryObj } from "@storybook/web-components"; | ||
import { html } from "lit"; | ||
import { | ||
buttonArgs, | ||
buttonArgTypes, | ||
renderButtons, | ||
type ButtonArgs, | ||
} from "./button-story-helpers.js"; | ||
|
||
const meta: Meta<ButtonArgs> = { | ||
argTypes: buttonArgTypes, | ||
|
||
render: (args) => | ||
html`<div style="display:flex;gap:1rem"> | ||
${renderButtons(args, "light")}${renderButtons(args, "dark")} | ||
</div>`, | ||
}; | ||
|
||
export default meta; | ||
|
||
export type Story = StoryObj<ButtonArgs>; | ||
|
||
export const ButtonPrimary: Story = { args: buttonArgs("primary") }; | ||
export const ButtonSecondary: Story = { args: buttonArgs("secondary") }; |