storybook/__mocks__/inject-decorator.ts.csf.txt

32 lines
668 B
Plaintext

import React from "react";
import { action } from "@storybook/addon-actions";
import { Button } from "@storybook/react/demo";
export default {
title: "Button",
excludeStories: ["text"],
includeStories: /emoji.*/
};
export const text = () => (
<Button onClick={action("clicked")}>Hello Button</Button>
);
export const emoji = () => (
<Button onClick={action("clicked")}>
<span role="img" aria-label="so cool">
😀 😎 👍 💯
</span>
</Button>
);
export function emojiFn() {
return (
<Button onClick={action("clicked")}>
<span role="img" aria-label="so cool">
😀 😎 👍 💯
</span>
</Button>
)
};