@@ -25,49 +25,33 @@ const sections = [
2525 </ thead >
2626 < tbody >
2727 < tr >
28+ < td > caretHidden</ td >
2829 < td >
29- < DxcFlex direction = "column" gap = "0.25rem" alignItems = "baseline" >
30- < StatusBadge status = "required" />
31- options
32- </ DxcFlex >
30+ < TableCode > boolean</ TableCode >
3331 </ td >
32+ < td > Whether the arrow next to the label must be displayed or not.</ td >
3433 < td >
35- < TableCode >
36- {
37- "{ label?: string; icon?: string | (React.ReactNode & React.SVGProps <SVGSVGElement>); value: string }[]"
38- }
39- </ TableCode >
34+ < TableCode > false</ TableCode >
4035 </ td >
36+ </ tr >
37+ < tr >
38+ < td > disabled</ td >
4139 < 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 >
6045 </ td >
61- < td > -</ td >
6246 </ tr >
6347 < tr >
64- < td > optionsIconPosition </ td >
48+ < td > expandOnHover </ td >
6549 < td >
66- < TableCode > 'before' | 'after' </ TableCode >
50+ < TableCode > boolean </ TableCode >
6751 </ 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 >
6953 < td >
70- < TableCode > 'before' </ TableCode >
54+ < TableCode > false </ TableCode >
7155 </ td >
7256 </ tr >
7357 < tr >
@@ -104,63 +88,79 @@ const sections = [
10488 < td > -</ td >
10589 </ tr >
10690 < tr >
107- < td > caretHidden </ td >
91+ < td > margin </ td >
10892 < td >
109- < TableCode > boolean</ TableCode >
93+ < TableCode >
94+ 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin
95+ </ TableCode >
11096 </ td >
111- < td > Whether the arrow next to the label must be displayed or not.</ td >
11297 < 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.
114100 </ td >
101+ < td > -</ td >
115102 </ tr >
116103 < tr >
117- < td > disabled</ td >
118- < td >
119- < TableCode > boolean</ TableCode >
120- </ td >
121- < td > If true, the component will be disabled.</ td >
122104 < td >
123- < TableCode > false</ TableCode >
105+ < DxcFlex direction = "column" gap = "0.25rem" alignItems = "baseline" >
106+ < StatusBadge status = "required" />
107+ onSelectOption
108+ </ DxcFlex >
124109 </ td >
125- </ tr >
126- < tr >
127- < td > expandOnHover</ td >
128110 < td >
129- < TableCode > boolean </ TableCode >
111+ < TableCode > { "(value: string) => void" } </ TableCode >
130112 </ td >
131- < td > If true, the options are shown when the dropdown is hovered.</ td >
132113 < 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.
134116 </ td >
117+ < td > -</ td >
135118 </ tr >
136119 < tr >
137120 < td >
138121 < DxcFlex direction = "column" gap = "0.25rem" alignItems = "baseline" >
139122 < StatusBadge status = "required" />
140- onSelectOption
123+ options
141124 </ DxcFlex >
142125 </ td >
143126 < 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 >
145132 </ td >
146133 < 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 >
149152 </ td >
150153 < td > -</ td >
151154 </ tr >
152155 < tr >
153- < td > margin </ td >
156+ < td > optionsIconPosition </ td >
154157 < td >
155- < TableCode >
156- 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin
157- </ TableCode >
158+ < TableCode > 'before' | 'after'</ TableCode >
158159 </ td >
160+ < td > In case options include icons, whether the icon should appear after or before the label.</ td >
159161 < 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 >
162163 </ td >
163- < td > -</ td >
164164 </ tr >
165165 < tr >
166166 < td > size</ td >
@@ -223,15 +223,13 @@ const sections = [
223223 } ,
224224] ;
225225
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+ ) ;
236234
237235export default DropdownCodePage ;
0 commit comments