@@ -25,49 +25,33 @@ const sections = [
25
25
</ thead >
26
26
< tbody >
27
27
< tr >
28
+ < td > caretHidden</ td >
28
29
< td >
29
- < DxcFlex direction = "column" gap = "0.25rem" alignItems = "baseline" >
30
- < StatusBadge status = "required" />
31
- options
32
- </ DxcFlex >
30
+ < TableCode > boolean</ TableCode >
33
31
</ td >
32
+ < td > Whether the arrow next to the label must be displayed or not.</ td >
34
33
< td >
35
- < TableCode >
36
- {
37
- "{ label?: string; icon?: string | (React.ReactNode & React.SVGProps <SVGSVGElement>); value: string }[]"
38
- }
39
- </ TableCode >
34
+ < TableCode > false</ TableCode >
40
35
</ td >
36
+ </ tr >
37
+ < tr >
38
+ < td > disabled</ td >
41
39
< td >
42
- An array of objects representing the options. Each object has the following properties:
43
- < ul >
44
- < li >
45
- < b > label</ b > : Option display value.
46
- </ li >
47
- < li >
48
- < b > icon</ b > :{ " " }
49
- < DxcLink newWindow href = "https://fonts.google.com/icons" >
50
- Material Symbol
51
- </ DxcLink > { " " }
52
- name or SVG element as the icon that will be placed next to the option label. When using Material
53
- Symbols, replace spaces with underscores. By default they are outlined if you want it to be filled
54
- prefix the symbol name with < TableCode > "filled_"</ TableCode > .
55
- </ li >
56
- < li >
57
- < b > value</ b > : Option inner value.
58
- </ li >
59
- </ ul >
40
+ < TableCode > boolean</ TableCode >
41
+ </ td >
42
+ < td > If true, the component will be disabled.</ td >
43
+ < td >
44
+ < TableCode > false</ TableCode >
60
45
</ td >
61
- < td > -</ td >
62
46
</ tr >
63
47
< tr >
64
- < td > optionsIconPosition </ td >
48
+ < td > expandOnHover </ td >
65
49
< td >
66
- < TableCode > 'before' | 'after' </ TableCode >
50
+ < TableCode > boolean </ TableCode >
67
51
</ td >
68
- < td > In case options include icons, whether the icon should appear after or before the label .</ td >
52
+ < td > If true, the options are shown when the dropdown is hovered .</ td >
69
53
< td >
70
- < TableCode > 'before' </ TableCode >
54
+ < TableCode > false </ TableCode >
71
55
</ td >
72
56
</ tr >
73
57
< tr >
@@ -104,63 +88,79 @@ const sections = [
104
88
< td > -</ td >
105
89
</ tr >
106
90
< tr >
107
- < td > caretHidden </ td >
91
+ < td > margin </ td >
108
92
< td >
109
- < TableCode > boolean</ TableCode >
93
+ < TableCode >
94
+ 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin
95
+ </ TableCode >
110
96
</ td >
111
- < td > Whether the arrow next to the label must be displayed or not.</ td >
112
97
< td >
113
- < TableCode > false</ TableCode >
98
+ Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left'
99
+ and 'right' properties in order to specify different margin sizes.
114
100
</ td >
101
+ < td > -</ td >
115
102
</ tr >
116
103
< tr >
117
- < td > disabled</ td >
118
- < td >
119
- < TableCode > boolean</ TableCode >
120
- </ td >
121
- < td > If true, the component will be disabled.</ td >
122
104
< td >
123
- < TableCode > false</ TableCode >
105
+ < DxcFlex direction = "column" gap = "0.25rem" alignItems = "baseline" >
106
+ < StatusBadge status = "required" />
107
+ onSelectOption
108
+ </ DxcFlex >
124
109
</ td >
125
- </ tr >
126
- < tr >
127
- < td > expandOnHover</ td >
128
110
< td >
129
- < TableCode > boolean </ TableCode >
111
+ < TableCode > { "(value: string) => void" } </ TableCode >
130
112
</ td >
131
- < td > If true, the options are shown when the dropdown is hovered.</ td >
132
113
< td >
133
- < TableCode > false</ TableCode >
114
+ This function will be called every time the selection changes. The value of the selected option will be
115
+ passed as a parameter.
134
116
</ td >
117
+ < td > -</ td >
135
118
</ tr >
136
119
< tr >
137
120
< td >
138
121
< DxcFlex direction = "column" gap = "0.25rem" alignItems = "baseline" >
139
122
< StatusBadge status = "required" />
140
- onSelectOption
123
+ options
141
124
</ DxcFlex >
142
125
</ td >
143
126
< td >
144
- < TableCode > { "(value: string) => void" } </ TableCode >
127
+ < TableCode >
128
+ {
129
+ "{ label?: string; icon?: string | (React.ReactNode & React.SVGProps <SVGSVGElement>); value: string }[]"
130
+ }
131
+ </ TableCode >
145
132
</ td >
146
133
< td >
147
- This function will be called every time the selection changes. The value of the selected option will be
148
- passed as a parameter.
134
+ An array of objects representing the options. Each object has the following properties:
135
+ < ul >
136
+ < li >
137
+ < b > label</ b > : Option display value.
138
+ </ li >
139
+ < li >
140
+ < b > icon</ b > :{ " " }
141
+ < DxcLink newWindow href = "https://fonts.google.com/icons" >
142
+ Material Symbol
143
+ </ DxcLink > { " " }
144
+ name or SVG element as the icon that will be placed next to the option label. When using Material
145
+ Symbols, replace spaces with underscores. By default they are outlined if you want it to be filled
146
+ prefix the symbol name with < TableCode > "filled_"</ TableCode > .
147
+ </ li >
148
+ < li >
149
+ < b > value</ b > : Option inner value.
150
+ </ li >
151
+ </ ul >
149
152
</ td >
150
153
< td > -</ td >
151
154
</ tr >
152
155
< tr >
153
- < td > margin </ td >
156
+ < td > optionsIconPosition </ td >
154
157
< td >
155
- < TableCode >
156
- 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin
157
- </ TableCode >
158
+ < TableCode > 'before' | 'after'</ TableCode >
158
159
</ td >
160
+ < td > In case options include icons, whether the icon should appear after or before the label.</ td >
159
161
< td >
160
- Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left'
161
- and 'right' properties in order to specify different margin sizes.
162
+ < TableCode > 'before'</ TableCode >
162
163
</ td >
163
- < td > -</ td >
164
164
</ tr >
165
165
< tr >
166
166
< td > size</ td >
@@ -223,15 +223,13 @@ const sections = [
223
223
} ,
224
224
] ;
225
225
226
- const DropdownCodePage = ( ) => {
227
- return (
228
- < DxcFlex direction = "column" gap = "4rem" >
229
- < QuickNavContainerLayout >
230
- < QuickNavContainer sections = { sections } startHeadingLevel = { 2 } > </ QuickNavContainer >
231
- </ QuickNavContainerLayout >
232
- < DocFooter githubLink = "https://github.com/dxc-technology/halstack-react/blob/master/apps/website/screens/components/dropdown/code/DropdownCodePage.tsx" />
233
- </ DxcFlex >
234
- ) ;
235
- } ;
226
+ const DropdownCodePage = ( ) => (
227
+ < DxcFlex direction = "column" gap = "4rem" >
228
+ < QuickNavContainerLayout >
229
+ < QuickNavContainer sections = { sections } startHeadingLevel = { 2 } />
230
+ </ QuickNavContainerLayout >
231
+ < DocFooter githubLink = "https://github.com/dxc-technology/halstack-react/blob/master/apps/website/screens/components/dropdown/code/DropdownCodePage.tsx" />
232
+ </ DxcFlex >
233
+ ) ;
236
234
237
235
export default DropdownCodePage ;
0 commit comments