Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 869 Bytes

button.stories.mdx

File metadata and controls

38 lines (29 loc) · 869 Bytes

import { useState } from 'react'; import { action } from '@storybook/addon-actions'; import { Button } from '@storybook/react/demo'; import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks';

Simple Button

Hello

Hello Button

Emoji

😀 😎 👍 💯

Counter w/ Code

{() => { const [counter, setCounter] = useState(0); const label = `Testing: ${counter}`; return setCounter(counter + 1)}>{label}; }}