1 | root | The track: one <div> that carries the background, the padding, the shape and the size. className and classNames.root land here. |
2 | item | One option's <label>, wrapping a real <input type="radio">. The selected one carries ant-segmented-item-selected, which an in-[.ant-segmented-item-selected]: variant in a label node can match. |
3 | thumb | The sliding highlight. It has no classNames key, so reach it with [&_.ant-segmented-thumb] and style it alongside the selected item. Its corner radius is the track's minus the track padding. |
4 | icon | An option's glyph. For an icon-only option, leave label unset and put an sr-only word here, since an empty label still adds a gap and pushes the glyph off center. |
5 | label | An option's content. It takes any node, so counts, Badge dots, Tags and two-line stacks go here. There is no itemRender. |