Two switches, one on and one off, for settings, preferences and feature flags. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M8 2L16 2C18.2091 2 20 3.7909 20 6C20 8.2091 18.2091 10 16 10L8 10M16 22L8 22C5.7909 22 4 20.2091 4 18C4 15.7909 5.7909 14 8 14L16 14M12 6C12 8.2091 10.2091 10 8 10C5.7909 10 4 8.2091 4 6C4 3.7909 5.7909 2 8 2C10.2091 2 12 3.7909 12 6ZM20 18C20 20.2091 18.2091 22 16 22C13.7909 22 12 20.2091 12 18C12 15.7909 13.7909 14 16 14C18.2091 14 20 15.7909 20 18Z"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- switches
- settings
- preferences
- options
- feature flags
- on off
Related icons
The rest of the toggles family first, then the Controls shelf.
FAQ
Answered from toggles's own facts: its shelf, the weights it was drawn in, its siblings and its dates.
- What is the toggles icon for?
- Two switches, one on and one off, for settings, preferences and feature flags. It is filed under Controls in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as switches, settings, preferences, options, feature flags and on off, and the browser's search matches all of those.
- What styles does the toggles icon come in?
- All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
- Is there a square or circle version of toggles?
- No. toggles is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with toggles?
- grip-horizontal, grip-vertical, power, power-off, sliders-2-horizontal and sliders-2-vertical, and 4 more, all shown below. They are the Controls shelf: nothing else in the set is named after toggles.
- How do I import toggles in React?
- <Toggles /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Toggles size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the toggles SVG?
- icons/stroke/toggles.svg, icons/two-tone/toggles.svg, icons/duotone/toggles.svg and icons/fill/toggles.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was toggles added to the set?
- Added 17 Sept 2026. It ships in v1.0.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.