mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 10:11:31 +00:00
We'll be using this for our image generation roadmap: https://docs.google.com/document/d/1O9YI_iLwXkl2wAJJ23dFp3eHR-JzhlRHCBPD8psG-1E/edit The original Studio Gen 2 is in the `frontend/studio-gen-2` directory. The original Studio Gen 1 is in the `frontend/studio-gen-1` directory
21 lines
605 B
Plaintext
21 lines
605 B
Plaintext
import { Canvas, Meta } from '@storybook/blocks';
|
|
|
|
import * as ButtonStories from './Button.stories';
|
|
|
|
<Meta of={ButtonStories} />
|
|
|
|
# Button
|
|
|
|
A button denotes a possible action to be taken on behalf of the user.
|
|
|
|
There are three types of Button: primary, secondary, action.
|
|
|
|
<Canvas of={ButtonStories.Primary} />
|
|
<Canvas of={ButtonStories.Secondary} />
|
|
<Canvas of={ButtonStories.Action} />
|
|
|
|
It can be shown with an optional icon. If "iconFlip" is true, the icon shows after the "children", if false it shows before.
|
|
|
|
<Canvas of={ButtonStories.WithIconFlip} />
|
|
<Canvas of={ButtonStories.WithIconNoFlip} />
|