mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 02:36:15 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
30
stories/forms/button.stories.ts
Normal file
30
stories/forms/button.stories.ts
Normal file
|
@ -0,0 +1,30 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
import { fn } from "@storybook/test";
|
||||
|
||||
export default {
|
||||
title: "Forms/Button",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
disabled: false,
|
||||
form: "",
|
||||
formaction: "",
|
||||
formenctype: "",
|
||||
formmethod: "GET",
|
||||
formnovalidate: false,
|
||||
formtarget: "",
|
||||
name: "",
|
||||
popovertarget: "",
|
||||
popovertargetaction: "toggle",
|
||||
type: "button",
|
||||
value: "",
|
||||
|
||||
onclick: fn(),
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("button", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue