You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'A styled radio control. Use when you have a small amount of options (2-5). Can be used for on/off switches. Has intrinsic sizing and switches between column and row.',
271
273
component: inputSegmentedControl,
272
274
preview: segmentedPreview,
275
+
cssVariables: [
276
+
{
277
+
name: '--segmented-control-border-radius',
278
+
description:
279
+
'Controls the border radius of the segmented control. Defaults to <code>--_input-border-radius</code>.',
280
+
},
281
+
{
282
+
name: '--segmented-control-checked-text-color',
283
+
description:
284
+
'Controls the text color of the selected segment. Defaults to <code>---color-brand-primary-contrast</code>.',
'Controls the background color of the selected segment. Defaults to <code>--color-brand-primary-base</code>.',
290
+
},
291
+
{
292
+
name: '--segmented-control-min-height',
293
+
description:
294
+
'Controls the height of each segment. Defaults to <code>--control-height-base</code>.',
295
+
},
296
+
],
297
+
examples: [
298
+
{
299
+
title: 'Horizontal Segmented Control',
300
+
description:
301
+
'You can also force a horizontal layout by using either -horizontal as class or a style query if full browser support is not relevant to you.',
302
+
code: inputSegmentedControlHorizontal,
303
+
notes: [
304
+
'Pay attention to the modified markup: the legend is made visually hidden, the visual label has <code>aria-hidden</code> and an extra wrapper is added, since fieldsets can not be set to flex containers.',
305
+
],
306
+
},
307
+
{
308
+
title: 'Button Group',
309
+
description: 'The same segmented control can be used to create a sort of button group.',
0 commit comments