This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree 1 file changed +18
-5
lines changed
packages/chakra-ui-core/src/CBox
1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { storiesOf } from '@storybook/vue'
2
- import { CBox } from '..'
2
+ import CBox from '../CBox '
3
3
4
4
storiesOf ( 'UI | Box' , module )
5
5
. add ( 'Box' , ( ) => ( {
@@ -28,13 +28,26 @@ storiesOf('UI | Box', module)
28
28
template : `
29
29
<div>
30
30
<CBox
31
+ position="relative"
31
32
w="300px"
32
33
h="200px"
33
- font-family="body"
34
- objectFit="contain"
35
- bgImg="url(https://lh3.googleusercontent.com/proxy/vG0O53R9-vPA2WpuC5lXWCHIVuIQiQ1R7bpQ1UcDsHnHVlz2BJMeSeJx1I1n4huq_SeB39iegxgQl1zXcnNqpq2IJfCgQwwWXpdRG9pNdA)"
34
+ overflow="hidden"
35
+ rounded="20px"
36
36
>
37
- <CBox h="full" bg="red.200" :w="1/2" />
37
+ <CBox
38
+ as="img"
39
+ font-family="body"
40
+ objectFit="contain"
41
+ src="https://images.unsplash.com/photo-1600002415506-dd06090d3480?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1650&q=80"
42
+ />
43
+ <CBox px="5" display="flex" flex-direction="column" justify-content="center" py="3" h="full" pos="absolute" top="0" left="0" bg="pink.200" w="50%">
44
+ <CBox as="h1" font-size="xl" font-weight="bold">
45
+ Tempations
46
+ </CBox>
47
+ <CBox as="p" font-size="md">
48
+ Spacial cakes for special moments.
49
+ </CBox>
50
+ </CBox>
38
51
</CBox>
39
52
</div>
40
53
`
You can’t perform that action at this time.
0 commit comments