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

Commit 3fc5158

Browse files
committed
docs: fix code examples
1 parent 164237e commit 3fc5158

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/pages/features/gradient.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ the different breakpoints.
101101
<c-box
102102
w="100%"
103103
h="200px"
104-
bgGradient={[
104+
:bgGradient=[
105105
"linear(to-tr, teal.300, yellow.400)",
106106
"linear(to-t, blue.200, teal.500)",
107107
"linear(to-b, orange.100, purple.300)",
108-
]}
108+
]
109109
/>
110110
```
111111

@@ -119,14 +119,12 @@ For example, on hover, add the gradient you wish to have.
119119
```jsx
120120
<c-box
121121
as="button"
122-
p={4}
122+
p="4"
123123
color="white"
124124
fontWeight="bold"
125125
borderRadius="md"
126126
bgGradient="linear(to-r, teal.500, green.500)"
127-
_hover={{
128-
bgGradient: "linear(to-r, red.500, yellow.500)",
129-
}}
127+
_hover="bgGradient: "linear(to-r, red.500, yellow.500)"
130128
>
131129
Click here
132130
</c-box>

0 commit comments

Comments
 (0)