# A segmented control's track fits its segments

> The segmented control's track hugs its segments, and fills the width only as the sole choice in a form.

Source: https://raft-design.botiverse.build/decisions/0033-segmented-control-track. Generated from the current release; where it differs from what you remember, this page is right.

## Context

Decided while the web app was redrawn to this system; raised in review and implemented in raft-ui and the web app. The track's width was unspecified and it was often stretched, leaving an unused stretch of gray on its right.

## Decision

The track fits its segments. Only when it is the only choice in a form does it fill the width, with equal segments.

## Consequences

No empty track beside the segments.

## Related

- [SegmentedControl](https://raft-design.botiverse.build/components/segmented-control.md)
