This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iconbutton): icon button storybook
- Loading branch information
1 parent
93aa1cc
commit 37c92de
Showing
6 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { storiesOf } from '@storybook/vue' | ||
import centered from '@storybook/addon-centered/vue' | ||
import IconButton from '../src/components/IconButton' | ||
|
||
storiesOf('UI | IconButton', module) | ||
.addDecorator(centered) | ||
.add('Default IconButton', () => ({ | ||
components: { IconButton }, | ||
template: ` | ||
<div> | ||
<IconButton _aria-label="Phone" variant-color="blue" icon="phone" /> | ||
</div> | ||
` | ||
})) | ||
.add('With sizes', () => ({ | ||
components: { IconButton }, | ||
template: ` | ||
<div> | ||
<IconButton _aria-label="Phone" size="sm" mx="3" variant-color="blue" icon="phone" /> | ||
<IconButton _aria-label="Phone" size="md" mx="3" variant-color="blue" icon="phone" /> | ||
<IconButton _aria-label="Phone" size="lg" mx="3" variant-color="blue" icon="phone" /> | ||
</div> | ||
` | ||
})) | ||
.add('With colors', () => ({ | ||
components: { IconButton }, | ||
template: ` | ||
<div> | ||
<IconButton _aria-label="Phone" size="sm" mx="3" variant-color="green" icon="phone" /> | ||
<IconButton _aria-label="Phone" size="md" mx="3" variant-color="orange" icon="star" /> | ||
<IconButton _aria-label="Phone" size="lg" mx="3" variant-color="red" icon="email" /> | ||
</div> | ||
` | ||
})) | ||
.add('With Loading', () => ({ | ||
components: { IconButton }, | ||
template: ` | ||
<div> | ||
<IconButton _aria-label="Phone" is-loading size="lg" mx="3" variant-color="indigo" icon="phone" /> | ||
</div> | ||
` | ||
})) | ||
.add('With Rounding', () => ({ | ||
components: { IconButton }, | ||
template: ` | ||
<div> | ||
<IconButton _aria-label="Phone" is-round size="lg" mx="3" variant-color="indigo" icon="star" /> | ||
</div> | ||
` | ||
})) |