# segmented-control icon

Segmented control. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/segmented-control

- Category: Layout & interface
- Use it for: segmented control, toggle group, button group, segmented button
- Tags: segmented control, segmented button, toggle group, button group, segments, switch, tabs, view switcher, options, ui control
- Component name: SegmentedControlIcon
- Added: 2026-10-19

## Don't confuse with

- `toggle`: toggle is a two-state switch with a knob
- `tabs`: tabs switch between pages and are drawn as raised tabs

## Also fits

- button element: several joined buttons (button-group)
- tabs: switch views inside a section of a page (segmented-control)

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/segmented-control.svg · PNG https://gentleface.com/png/line-round/16/segmented-control.png · https://gentleface.com/png/line-round/32/segmented-control.png · https://gentleface.com/png/line-round/48/segmented-control.png
- line-soft: https://gentleface.com/svg/line-soft/16/segmented-control.svg · PNG https://gentleface.com/png/line-soft/16/segmented-control.png · https://gentleface.com/png/line-soft/32/segmented-control.png · https://gentleface.com/png/line-soft/48/segmented-control.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/segmented-control.svg · PNG https://gentleface.com/png/line-sharp/16/segmented-control.png · https://gentleface.com/png/line-sharp/32/segmented-control.png · https://gentleface.com/png/line-sharp/48/segmented-control.png
- solid-round: https://gentleface.com/svg/solid-round/16/segmented-control.svg · PNG https://gentleface.com/png/solid-round/16/segmented-control.png · https://gentleface.com/png/solid-round/32/segmented-control.png · https://gentleface.com/png/solid-round/48/segmented-control.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/segmented-control.svg · PNG https://gentleface.com/png/solid-soft/16/segmented-control.png · https://gentleface.com/png/solid-soft/32/segmented-control.png · https://gentleface.com/png/solid-soft/48/segmented-control.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/segmented-control.svg · PNG https://gentleface.com/png/solid-sharp/16/segmented-control.png · https://gentleface.com/png/solid-sharp/32/segmented-control.png · https://gentleface.com/png/solid-sharp/48/segmented-control.png

The SVG of every style: https://gentleface.com/icons/segmented-control.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z"/></svg>
```

### React

```tsx
// Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control
import type { SVGProps } from 'react';

export function SegmentedControlIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/segmented-control.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control. Takes the text color. */
.icon-segmented-control {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#segmented-control"/></svg>
```

### SwiftUI

```swift
// Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control
import SwiftUI

struct SegmentedControlIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12, y: 4))
        p.addCurve(to: CGPoint(x: 12.736, y: 4.14), control1: CGPoint(x: 12.254, y: 4), control2: CGPoint(x: 12.5, y: 4.047))
        p.addCurve(to: CGPoint(x: 13.414, y: 4.586), control1: CGPoint(x: 12.993, y: 4.242), control2: CGPoint(x: 13.219, y: 4.391))
        p.addCurve(to: CGPoint(x: 13.86, y: 5.264), control1: CGPoint(x: 13.609, y: 4.781), control2: CGPoint(x: 13.758, y: 5.007))
        p.addCurve(to: CGPoint(x: 14, y: 6), control1: CGPoint(x: 13.953, y: 5.5), control2: CGPoint(x: 14, y: 5.746))
        p.addLine(to: CGPoint(x: 14, y: 9))
        p.addCurve(to: CGPoint(x: 13.86, y: 9.736), control1: CGPoint(x: 14, y: 9.254), control2: CGPoint(x: 13.953, y: 9.5))
        p.addCurve(to: CGPoint(x: 13.414, y: 10.414), control1: CGPoint(x: 13.758, y: 9.993), control2: CGPoint(x: 13.609, y: 10.219))
        p.addCurve(to: CGPoint(x: 12.736, y: 10.86), control1: CGPoint(x: 13.219, y: 10.609), control2: CGPoint(x: 12.993, y: 10.758))
        p.addCurve(to: CGPoint(x: 12, y: 11), control1: CGPoint(x: 12.5, y: 10.953), control2: CGPoint(x: 12.254, y: 11))
        p.addLine(to: CGPoint(x: 3, y: 11))
        p.addCurve(to: CGPoint(x: 2.264, y: 10.86), control1: CGPoint(x: 2.746, y: 11), control2: CGPoint(x: 2.5, y: 10.953))
        p.addCurve(to: CGPoint(x: 1.586, y: 10.414), control1: CGPoint(x: 2.007, y: 10.758), control2: CGPoint(x: 1.781, y: 10.609))
        p.addCurve(to: CGPoint(x: 1.14, y: 9.736), control1: CGPoint(x: 1.391, y: 10.219), control2: CGPoint(x: 1.242, y: 9.993))
        p.addCurve(to: CGPoint(x: 1, y: 9), control1: CGPoint(x: 1.047, y: 9.5), control2: CGPoint(x: 1, y: 9.254))
        p.addLine(to: CGPoint(x: 1, y: 6))
        p.addCurve(to: CGPoint(x: 1.14, y: 5.264), control1: CGPoint(x: 1, y: 5.746), control2: CGPoint(x: 1.047, y: 5.5))
        p.addCurve(to: CGPoint(x: 1.586, y: 4.586), control1: CGPoint(x: 1.242, y: 5.007), control2: CGPoint(x: 1.391, y: 4.781))
        p.addCurve(to: CGPoint(x: 2.264, y: 4.14), control1: CGPoint(x: 1.781, y: 4.391), control2: CGPoint(x: 2.007, y: 4.242))
        p.addCurve(to: CGPoint(x: 3, y: 4), control1: CGPoint(x: 2.5, y: 4.047), control2: CGPoint(x: 2.746, y: 4))
        p.addLine(to: CGPoint(x: 12, y: 4))
        p.closeSubpath()
        p.move(to: CGPoint(x: 3, y: 5))
        p.addCurve(to: CGPoint(x: 2.632, y: 5.07), control1: CGPoint(x: 2.873, y: 5), control2: CGPoint(x: 2.75, y: 5.023))
        p.addCurve(to: CGPoint(x: 2.293, y: 5.293), control1: CGPoint(x: 2.504, y: 5.121), control2: CGPoint(x: 2.391, y: 5.195))
        p.addCurve(to: CGPoint(x: 2.07, y: 5.632), control1: CGPoint(x: 2.195, y: 5.391), control2: CGPoint(x: 2.121, y: 5.504))
        p.addCurve(to: CGPoint(x: 2, y: 6), control1: CGPoint(x: 2.023, y: 5.75), control2: CGPoint(x: 2, y: 5.873))
        p.addLine(to: CGPoint(x: 2, y: 9))
        p.addCurve(to: CGPoint(x: 2.07, y: 9.368), control1: CGPoint(x: 2, y: 9.127), control2: CGPoint(x: 2.023, y: 9.25))
        p.addCurve(to: CGPoint(x: 2.293, y: 9.707), control1: CGPoint(x: 2.121, y: 9.496), control2: CGPoint(x: 2.195, y: 9.609))
        p.addCurve(to: CGPoint(x: 2.632, y: 9.93), control1: CGPoint(x: 2.391, y: 9.805), control2: CGPoint(x: 2.504, y: 9.879))
        p.addCurve(to: CGPoint(x: 3, y: 10), control1: CGPoint(x: 2.75, y: 9.977), control2: CGPoint(x: 2.873, y: 10))
        p.addLine(to: CGPoint(x: 5, y: 10))
        p.addLine(to: CGPoint(x: 5, y: 5))
        p.addLine(to: CGPoint(x: 3, y: 5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10, y: 10))
        p.addLine(to: CGPoint(x: 12, y: 10))
        p.addCurve(to: CGPoint(x: 12.368, y: 9.93), control1: CGPoint(x: 12.127, y: 10), control2: CGPoint(x: 12.25, y: 9.977))
        p.addCurve(to: CGPoint(x: 12.707, y: 9.707), control1: CGPoint(x: 12.496, y: 9.879), control2: CGPoint(x: 12.609, y: 9.805))
        p.addCurve(to: CGPoint(x: 12.93, y: 9.368), control1: CGPoint(x: 12.805, y: 9.609), control2: CGPoint(x: 12.879, y: 9.496))
        p.addCurve(to: CGPoint(x: 13, y: 9), control1: CGPoint(x: 12.977, y: 9.25), control2: CGPoint(x: 13, y: 9.127))
        p.addLine(to: CGPoint(x: 13, y: 6))
        p.addCurve(to: CGPoint(x: 12.93, y: 5.632), control1: CGPoint(x: 13, y: 5.873), control2: CGPoint(x: 12.977, y: 5.75))
        p.addCurve(to: CGPoint(x: 12.707, y: 5.293), control1: CGPoint(x: 12.879, y: 5.504), control2: CGPoint(x: 12.805, y: 5.391))
        p.addCurve(to: CGPoint(x: 12.368, y: 5.07), control1: CGPoint(x: 12.609, y: 5.195), control2: CGPoint(x: 12.496, y: 5.121))
        p.addCurve(to: CGPoint(x: 12, y: 5), control1: CGPoint(x: 12.25, y: 5.023), control2: CGPoint(x: 12.127, y: 5))
        p.addLine(to: CGPoint(x: 10, y: 5))
        p.addLine(to: CGPoint(x: 10, y: 10))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// SegmentedControlIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val SegmentedControlIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "segmented-control", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(SegmentedControlIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_segmented_control.xml · Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M12 4C12.254 4 12.5 4.047 12.736 4.14C12.993 4.242 13.219 4.391 13.414 4.586C13.609 4.781 13.758 5.007 13.86 5.264C13.953 5.5 14 5.746 14 6L14 9C14 9.254 13.953 9.5 13.86 9.736C13.758 9.993 13.609 10.219 13.414 10.414C13.219 10.609 12.993 10.758 12.736 10.86C12.5 10.953 12.254 11 12 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 6C1 5.746 1.047 5.5 1.14 5.264C1.242 5.007 1.391 4.781 1.586 4.586C1.781 4.391 2.007 4.242 2.264 4.14C2.5 4.047 2.746 4 3 4L12 4ZM3 5C2.873 5 2.75 5.023 2.632 5.07C2.504 5.121 2.391 5.195 2.293 5.293C2.195 5.391 2.121 5.504 2.07 5.632C2.023 5.75 2 5.873 2 6L2 9C2 9.127 2.023 9.25 2.07 9.368C2.121 9.496 2.195 9.609 2.293 9.707C2.391 9.805 2.504 9.879 2.632 9.93C2.75 9.977 2.873 10 3 10L5 10L5 5L3 5ZM10 10L12 10C12.127 10 12.25 9.977 12.368 9.93C12.496 9.879 12.609 9.805 12.707 9.707C12.805 9.609 12.879 9.496 12.93 9.368C12.977 9.25 13 9.127 13 9L13 6C13 5.873 12.977 5.75 12.93 5.632C12.879 5.504 12.805 5.391 12.707 5.293C12.609 5.195 12.496 5.121 12.368 5.07C12.25 5.023 12.127 5 12 5L10 5L10 10Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "segmented-control" (line-round), MIT. https://gentleface.com/icons/segmented-control
import 'package:flutter/widgets.dart';

class SegmentedControlIcon extends StatelessWidget {
  const SegmentedControlIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _SegmentedControlIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _SegmentedControlIconPainter extends CustomPainter {
  _SegmentedControlIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(12, 4)
      ..cubicTo(12.254, 4, 12.5, 4.047, 12.736, 4.14)
      ..cubicTo(12.993, 4.242, 13.219, 4.391, 13.414, 4.586)
      ..cubicTo(13.609, 4.781, 13.758, 5.007, 13.86, 5.264)
      ..cubicTo(13.953, 5.5, 14, 5.746, 14, 6)
      ..lineTo(14, 9)
      ..cubicTo(14, 9.254, 13.953, 9.5, 13.86, 9.736)
      ..cubicTo(13.758, 9.993, 13.609, 10.219, 13.414, 10.414)
      ..cubicTo(13.219, 10.609, 12.993, 10.758, 12.736, 10.86)
      ..cubicTo(12.5, 10.953, 12.254, 11, 12, 11)
      ..lineTo(3, 11)
      ..cubicTo(2.746, 11, 2.5, 10.953, 2.264, 10.86)
      ..cubicTo(2.007, 10.758, 1.781, 10.609, 1.586, 10.414)
      ..cubicTo(1.391, 10.219, 1.242, 9.993, 1.14, 9.736)
      ..cubicTo(1.047, 9.5, 1, 9.254, 1, 9)
      ..lineTo(1, 6)
      ..cubicTo(1, 5.746, 1.047, 5.5, 1.14, 5.264)
      ..cubicTo(1.242, 5.007, 1.391, 4.781, 1.586, 4.586)
      ..cubicTo(1.781, 4.391, 2.007, 4.242, 2.264, 4.14)
      ..cubicTo(2.5, 4.047, 2.746, 4, 3, 4)
      ..lineTo(12, 4)
      ..close()
      ..moveTo(3, 5)
      ..cubicTo(2.873, 5, 2.75, 5.023, 2.632, 5.07)
      ..cubicTo(2.504, 5.121, 2.391, 5.195, 2.293, 5.293)
      ..cubicTo(2.195, 5.391, 2.121, 5.504, 2.07, 5.632)
      ..cubicTo(2.023, 5.75, 2, 5.873, 2, 6)
      ..lineTo(2, 9)
      ..cubicTo(2, 9.127, 2.023, 9.25, 2.07, 9.368)
      ..cubicTo(2.121, 9.496, 2.195, 9.609, 2.293, 9.707)
      ..cubicTo(2.391, 9.805, 2.504, 9.879, 2.632, 9.93)
      ..cubicTo(2.75, 9.977, 2.873, 10, 3, 10)
      ..lineTo(5, 10)
      ..lineTo(5, 5)
      ..lineTo(3, 5)
      ..close()
      ..moveTo(10, 10)
      ..lineTo(12, 10)
      ..cubicTo(12.127, 10, 12.25, 9.977, 12.368, 9.93)
      ..cubicTo(12.496, 9.879, 12.609, 9.805, 12.707, 9.707)
      ..cubicTo(12.805, 9.609, 12.879, 9.496, 12.93, 9.368)
      ..cubicTo(12.977, 9.25, 13, 9.127, 13, 9)
      ..lineTo(13, 6)
      ..cubicTo(13, 5.873, 12.977, 5.75, 12.93, 5.632)
      ..cubicTo(12.879, 5.504, 12.805, 5.391, 12.707, 5.293)
      ..cubicTo(12.609, 5.195, 12.496, 5.121, 12.368, 5.07)
      ..cubicTo(12.25, 5.023, 12.127, 5, 12, 5)
      ..lineTo(10, 5)
      ..lineTo(10, 10)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_SegmentedControlIconPainter old) => old.color != color;
}
```
