All files / projects-dev/apps/storybook/stories/Base Shapes.stories.ts

0% Statements 0/81
0% Branches 0/1
0% Functions 0/1
0% Lines 0/81

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82                                                                                                                                                                   
import { Story, Meta } from "@storybook/html";

export default {
    title: "Base/Shapes",
} as Meta;

interface Properties {
    type: string;
}

const Template: Story<Properties> = ({ type }) => `<div class="shape--${type}"></div>`;

export const ArrowCurved = Template.bind({});
ArrowCurved.args = {
    type: "arrow--curved",
};

export const Circle = Template.bind({});
Circle.args = {
    type: "circle",
};

export const Oval = Template.bind({});
Oval.args = {
    type: "oval",
};

export const Rectangle = Template.bind({});
Rectangle.args = {
    type: "rectangle",
};

export const Square = Template.bind({});
Square.args = {
    type: "square",
};

export const Star = Template.bind({});
Star.args = {
    type: "star",
};

export const TriangleDown = Template.bind({});
TriangleDown.args = {
    type: "triangle--down",
};

export const TriangleLeft = Template.bind({});
TriangleLeft.args = {
    type: "triangle--left",
};

export const TriangleRight = Template.bind({});
TriangleRight.args = {
    type: "triangle--right",
};

export const TriangleUp = Template.bind({});
TriangleUp.args = {
    type: "triangle--up",
};

export const TriangleTopLeft = Template.bind({});
TriangleTopLeft.args = {
    type: "triangle--top--left",
};

export const TriangleTopRight = Template.bind({});
TriangleTopRight.args = {
    type: "triangle--top--right",
};

export const TriangleBottomLeft = Template.bind({});
TriangleBottomLeft.args = {
    type: "triangle--bottom--left",
};

export const TriangleBottomRight = Template.bind({});
TriangleBottomRight.args = {
    type: "triangle--bottom--right",
};