This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { configure , addDecorator } from '@storybook/vue' ;
2
2
import ThemeProvider from '../src/components/ThemeProvider'
3
3
import theme from '../src/lib/theme'
4
+ import icons from '../src/lib/plugin/iconsPaths'
4
5
5
6
addDecorator ( ( ) => ( {
6
7
template : `
7
- <ThemeProvider :theme="theme" color-mode="light">
8
+ <ThemeProvider :theme="theme" :icons="icons" color-mode="light">
8
9
<story/>
9
10
</ThemeProvider>
10
11
` ,
11
12
data ( ) {
12
13
return {
13
- theme
14
+ theme,
15
+ icons
14
16
}
15
17
} ,
16
18
components : { ThemeProvider }
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ storiesOf('UI | Icon', module)
8
8
components : { Icon } ,
9
9
template : `
10
10
<div>
11
- <Icon name="star" color="blue .400" size="4" />
12
- <Icon name="email" color="yellow .400" size="5" />
13
- <Icon name="phone" color="green.400" size="6" />
11
+ <Icon name="star" mx="2" color="yellow .400" size="4" />
12
+ <Icon name="email" mx="2" color="indigo .400" size="5" />
13
+ <Icon name="phone" mx="2" color="green.400" size="6" />
14
14
</div>
15
15
`
16
16
} ) )
17
17
. add ( 'Custom Icon eg FA' , ( ) => ( {
18
18
components : { Icon } ,
19
19
template : `
20
20
<div>
21
- <Icon name="Search " color="blue.400" size="10" />
21
+ <Icon name="ambulance " color="blue.400" size="10" />
22
22
</div>
23
23
`
24
24
} ) )
You can’t perform that action at this time.
0 commit comments