This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
packages/chakra-ui-core/src/CBox Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 11import { storiesOf } from '@storybook/vue'
2- import { CBox } from '..'
2+ import CBox from '../CBox '
33
44storiesOf ( 'UI | Box' , module )
55 . add ( 'Box' , ( ) => ( {
@@ -28,13 +28,26 @@ storiesOf('UI | Box', module)
2828 template : `
2929 <div>
3030 <CBox
31+ position="relative"
3132 w="300px"
3233 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"
3636 >
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>
3851 </CBox>
3952 </div>
4053 `
You can’t perform that action at this time.
0 commit comments