Skip to content

Commit f09e349

Browse files
committed
docs(no-physical-properties): update example
1 parent 8fdfc28 commit f09e349

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/rules/no-physical-properties.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ function App(){
3030
return <Circle _hover={{ borderBottom: 'solid 1px' }} />;
3131
}
3232
```
33+
```js
34+
35+
import { css } from './panda/css';
36+
37+
const styles = css({ textAlign: 'left' });
38+
```
39+
```js
40+
41+
import { Box } from './panda/jsx';
42+
43+
function App(){
44+
return <Box textAlign={"right"} />;
45+
}
46+
```
3347

3448
✔️ Examples of **correct** code:
3549
```js
@@ -53,6 +67,20 @@ function App(){
5367
return <Circle _hover={{ borderBlockEnd: 'solid 1px' }} />;
5468
}
5569
```
70+
```js
71+
72+
import { css } from './panda/css';
73+
74+
const styles = css({ textAlign: 'start' });
75+
```
76+
```js
77+
78+
import { Box } from './panda/jsx';
79+
80+
function App(){
81+
return <Box textAlign={"end"} />;
82+
}
83+
```
5684

5785
## Resources
5886

0 commit comments

Comments
 (0)