mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
20 lines
422 B
Plaintext
20 lines
422 B
Plaintext
import React from "react";
|
|
import { action } from "@storybook/addon-actions";
|
|
import { Button } from "@storybook/react/demo";
|
|
|
|
export default {
|
|
title: "Button"
|
|
};
|
|
|
|
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>
|
|
);
|