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

Commit c0d609c

Browse files
committed
fix: update CBox storybook
1 parent 00000ca commit c0d609c

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

packages/chakra-ui-core/src/CBox/CBox.stories.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { storiesOf } from '@storybook/vue'
2-
import { CBox } from '..'
2+
import CBox from '../CBox'
33

44
storiesOf('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
`

0 commit comments

Comments
 (0)