mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
27
stories/forms/textarea.stories.ts
Normal file
27
stories/forms/textarea.stories.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "Forms/Textarea",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
cols: 20,
|
||||
dirname: "dirname",
|
||||
disabled: false,
|
||||
form: "form",
|
||||
maxlength: 100,
|
||||
minlength: 0,
|
||||
name: "name",
|
||||
placeholder: "placeholder",
|
||||
readonly: false,
|
||||
required: false,
|
||||
rows: 2,
|
||||
wrap: "soft",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("textarea", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue