mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
this required the following: - downgrading nx react (19 -> 18.2) - .npmrc credentials for fontawesome - installing a lot of nx plugins from the vanilla config - removing kalidokit vendored code and all references to it
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} />
|