@@ -5,13 +5,15 @@ menu: Components
5
5
---
6
6
7
7
import { Playground } from ' docz'
8
- import { ThemeProvider } from ' emotion-theming'
9
8
import { PropsTable } from ' ../.internal'
10
9
import { List } from ' ../src'
11
10
12
11
# List
13
12
14
- Based on [ Flex] ( #/flex ) with applied reset styles for ` ul ` , ` ol ` . For more information see [ Flex] ( #/flex ) docs.
13
+ Based on [ Flex] ( #/flex ) with reset styles for ` ul ` , ` ol ` and ` flex-direction: column ` by default.
14
+
15
+ For more information see [ Flex] ( #/flex ) docs.
16
+
15
17
16
18
## Usage
17
19
@@ -52,3 +54,39 @@ import { List } from 'pss-components'
52
54
<List.Item >6</List.Item >
53
55
</List >
54
56
</Playground >
57
+
58
+ ### Change ` list-style `
59
+
60
+ <Playground >
61
+ <List listStyle = ' square inside' >
62
+ <List.Item >1</List.Item >
63
+ <List.Item >2</List.Item >
64
+ <List.Item >3</List.Item >
65
+ <List.Item >4</List.Item >
66
+ <List.Item >5</List.Item >
67
+ <List.Item >6</List.Item >
68
+ </List >
69
+ </Playground >
70
+
71
+ ### Ordered list
72
+
73
+ <Playground >
74
+ <List as = ' ol' listStyle = ' decimal' pl = ' 1em' >
75
+ <List.Item >First</List.Item >
76
+ <List.Item >Second</List.Item >
77
+ <List.Item >Third</List.Item >
78
+ <List.Item >Fourth</List.Item >
79
+ <List.Item >Fifth</List.Item >
80
+ <List.Item >Sixth</List.Item >
81
+ </List >
82
+ </Playground >
83
+
84
+ ## Props
85
+
86
+ ### List ([ Flex] ( #/flex ) )
87
+
88
+ <PropsTable of = { List } />
89
+
90
+ ### List.Item ([ Box] ( #/box ) )
91
+
92
+ <PropsTable of = { List .Item } />
0 commit comments