mirror of
https://github.com/picocss/pico.git
synced 2025-04-30 04:49:13 -04:00
feat: add StorybookJS
This commit is contained in:
parent
1039a4788d
commit
cbc1260553
116 changed files with 3560 additions and 2 deletions
16
stories/svg-and-mathml/math.stories.ts
Normal file
16
stories/svg-and-mathml/math.stories.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "SvgAndMathML/Math",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
display: "block",
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("math", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
21
stories/svg-and-mathml/svg.stories.ts
Normal file
21
stories/svg-and-mathml/svg.stories.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { createHTMLElement } from "../HTMLElement";
|
||||
|
||||
export default {
|
||||
title: "SvgAndMathML/SVG",
|
||||
tags: ["autodocs"],
|
||||
args: {
|
||||
content: "Content",
|
||||
height: 100,
|
||||
width: 100,
|
||||
preserveAspectRatio: "xMidYMid meet",
|
||||
viewBox: "0 0 100 100",
|
||||
x: 0,
|
||||
y: 0,
|
||||
},
|
||||
// Render the <html> element
|
||||
render: (args) => {
|
||||
return createHTMLElement("svg", args);
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {};
|
Loading…
Add table
Add a link
Reference in a new issue