Skip to content

Commit 0999276

Browse files
committed
refactor: change to kebab case
1 parent d9b7921 commit 0999276

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

content/2.styled-system/1.style-props.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ each group.
108108
```html
109109
<template>
110110
<!-- font-size of `theme.fontSizes.md` -->
111-
<c-text fontSize="md" />
111+
<c-text font-size="md" />
112112

113113
<!-- font-size `32px` -->
114-
<c-text fontSize="32" />
114+
<c-text font-size="32" />
115115

116116
<!-- font-size `'2em'` -->
117-
<c-text fontSize="2em" />
117+
<c-text font-size="2em" />
118118

119119
<!-- text-align `left` on all viewports and `center` from the first breakpoint and up -->
120-
<c-text :textAlign="[ 'left', 'center' ]" />
120+
<c-text :text-align="[ 'left', 'center' ]" />
121121
</template>
122122
```
123123

@@ -176,13 +176,13 @@ each group.
176176
<c-box :display="{ base: 'none', md: 'block' }" />
177177

178178
<!-- shorthand -->
179-
<c-box hideBelow='md' />
179+
<c-box hide-below='md' />
180180

181181
<!-- hide the element from 'md' up -->
182182
<c-box :display="{ base: 'block', md: 'none' }" />
183183

184184
<!-- shorthand -->
185-
<c-box hideFrom='md' />
185+
<c-box hide-from='md' />
186186
</template>
187187
```
188188

@@ -234,7 +234,7 @@ each group.
234234
```html
235235
<template>
236236
<!-- verbose -->
237-
<c-box display="grid" gridGap="2" gridAutoFlow="row dense">
237+
<c-box display="grid" grid-gap="2" grid-auto-flow="row dense">
238238
Grid
239239
</c-box>
240240

@@ -268,13 +268,13 @@ each group.
268268
<template>
269269
<!-- verbose -->
270270
<c-box
271-
backgroundImage="url('/images/kyuubi.png')"
272-
backgroundPosition="center"
273-
backgroundRepeat="no-repeat"
271+
background-image="url('/images/kyuubi.png')"
272+
background-position="center"
273+
background-repeat="no-repeat"
274274
>
275275

276276
<!-- shorthand -->
277-
<c-box bgImage="url('/images/gaara.png')" bgPos="center" bgRepeat="no-repeat" >
277+
<c-box bg-image="url('/images/gaara.png')" bg-pos="center" bg-repeat="no-repeat" >
278278
</template>
279279
```
280280

@@ -291,7 +291,7 @@ each group.
291291

292292
```html
293293
<template>
294-
<c-box border="1px" borderRadius="md" borderColor="gray.200">
294+
<c-box border="1px" border-radius="md" border-color="gray.200">
295295
Card
296296
</c-box>
297297
</template>
@@ -335,13 +335,13 @@ each group.
335335
```html
336336
<template>
337337
<!-- This button will have no right borderRadius -->
338-
<c-button roundedRight="0">Button 1</c-button>
338+
<c-button rounded-right="0">Button 1</c-button>
339339

340340
<!-- This button will have no left borderRadius*/ -->
341-
<c-button roundedLeft="0">Button 2</c-button>
341+
<c-button rounded-left="0">Button 2</c-button>
342342

343343
<!-- top left and top right radius will be `theme.radii.md` => 4px -->
344-
<c-button roundedTop="md">Button 2</c-button>
344+
<c-button rounded-top="md">Button 2</c-button>
345345
</template>
346346
```
347347

@@ -399,10 +399,10 @@ each group.
399399
<!-- verbose -->
400400
<!-- text-shadow will be `theme.shadows.sm` -->
401401
<!-- box-shadow will be `theme.shadows.md` -->
402-
<c-box textShadow="sm" boxShadow="md" />
402+
<c-box text-shadow="sm" box-shadow="md" />
403403

404404
<!-- raw CSS values -->
405-
<c-text textShadow="2px 2px #ff0000" boxShadow="5px 10px #888888">
405+
<c-text text-shadow="2px 2px #ff0000" box-shadow="5px 10px #888888">
406406
Text with shadows
407407
</c-text>
408408
</template>

0 commit comments

Comments
 (0)