File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -137,33 +137,12 @@ type ControlListRef<TValue> = {
137137 { value: ' night' , label: ' 🌙' },
138138 ]}
139139 onChangeOption = { onChangeOption }
140- optionGap = { 10 }
141140/>
142141```
143142
144143### Alignment Examples
145144
146145``` tsx
147- // Left alignment
148- <MultiswitchController <' First' | ' Second' >
149- options = { [
150- { value: ' First' , label: ' First' },
151- { value: ' Second' , label: ' Second' },
152- ]}
153- defaultOption = " First"
154- align = " left"
155- />
156-
157- // Center alignment
158- <MultiswitchController <' First' | ' Second' >
159- options = { [
160- { value: ' First' , label: ' First' },
161- { value: ' Second' , label: ' Second' },
162- ]}
163- defaultOption = " First"
164- align = " center"
165- />
166-
167146// Right alignment
168147<MultiswitchController <' First' | ' Second' | ' Third' >
169148 options = { [
@@ -236,7 +215,6 @@ function MyComponent() {
236215 { value: ' Sixteenth' , label: ' Sixteenth' },
237216 ]}
238217 defaultOption = " First"
239- variant = { variant }
240218/>
241219```
242220
@@ -248,7 +226,6 @@ function MyComponent() {
248226 { value: ' First' , label: ' First is a very long label' },
249227 { value: ' Second' , label: ' Second is short' },
250228 ]}
251- variant = { variant }
252229 defaultOption = " First"
253230/>
254231```
You can’t perform that action at this time.
0 commit comments