Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 91d6a8a

Browse files
committed
feat(pseudobox): created storybook for pseudobox
1 parent 0660fbd commit 91d6a8a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

stories/1-Box.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Box from '../src/components/Box'
44

55
storiesOf('UI | Box', module)
66
.addDecorator(centered)
7-
.add('Base Box', () => ({
7+
.add('Box', () => ({
88
components: { Box },
99
template: `
1010
<Box

stories/2-PseudoBox.stories.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { storiesOf } from '@storybook/vue'
2+
import centered from '@storybook/addon-centered/vue'
3+
import PseudoBox from '../src/components/PseudoBox'
4+
5+
storiesOf('UI | PseudoBox', module)
6+
.addDecorator(centered)
7+
.add('PseudoBox', () => ({
8+
components: { PseudoBox },
9+
template: `
10+
<PseudoBox
11+
bg="teal.300"
12+
color="teal.800"
13+
p="3"
14+
rounded="md"
15+
bl="4px"
16+
font-family="body"
17+
transition="all 0.2s ease-in-out"
18+
shadow="md"
19+
:_hover="{
20+
bg: 'red.200',
21+
color: 'red.700'
22+
}"
23+
:_focus="{
24+
bg: 'indigo.200',
25+
color: 'indigo.700'
26+
}"
27+
>
28+
This is the PseudoBox component. With it you can bind pseudo styles! Try hovering over this component.
29+
</PseudoBox>
30+
`
31+
}))

0 commit comments

Comments
 (0)