Gentleface › Layout & interface › slider
slider icon
sliderSlider: slider, range input, range slider, price range. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated slider-drag · line-round
The thumb is dragged to the far end with a small rebound, back past its place, and home. The thick active bar and the thin rail lengthen and shorten against it, so the gap stays with the thumb.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.3 s to 2.9 s. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M6.732 5.732C6.976 5.488 7.259 5.303 7.58 5.176C7.875 5.059 8.182 5 8.5 5C8.818 5 9.125 5.059 9.42 5.176C9.741 5.303 10.024 5.488 10.268 5.732C10.512 5.976 10.697 6.259 10.824 6.58C10.879 6.717 10.921 6.858 10.95 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L10.95 8C10.921 8.143 10.879 8.283 10.824 8.42C10.697 8.741 10.512 9.024 10.268 9.268C10.024 9.512 9.741 9.697 9.42 9.824C9.125 9.941 8.818 10 8.5 10C8.182 10 7.875 9.941 7.58 9.824C7.259 9.697 6.976 9.512 6.732 9.268C6.488 9.024 6.303 8.741 6.176 8.42C6.059 8.125 6 7.818 6 7.5L6 8.5C6 8.641 5.952 8.759 5.856 8.856C5.759 8.952 5.641 9 5.5 9L2.264 9C2.169 9 2.077 8.97 2 8.914C1.7 8.808 1.459 8.626 1.275 8.366C1.092 8.107 1 7.818 1 7.5C1 7.182 1.092 6.893 1.275 6.634C1.459 6.374 1.7 6.192 2 6.086C2.077 6.03 2.169 6 2.264 6L5.5 6C5.641 6 5.759 6.048 5.856 6.144C5.952 6.241 6 6.359 6 6.5L6 7.5C6 7.182 6.059 6.875 6.176 6.58C6.303 6.259 6.488 5.976 6.732 5.732ZM7.439 8.561C7.586 8.707 7.755 8.818 7.948 8.895C8.125 8.965 8.309 9 8.5 9C8.691 9 8.875 8.965 9.052 8.895C9.245 8.818 9.414 8.707 9.561 8.561C9.707 8.414 9.818 8.245 9.895 8.052C9.965 7.875 10 7.691 10 7.5C10 7.309 9.965 7.125 9.895 6.948C9.818 6.755 9.707 6.586 9.561 6.439C9.414 6.293 9.245 6.182 9.052 6.105C8.875 6.035 8.691 6 8.5 6C8.309 6 8.125 6.035 7.948 6.105C7.755 6.182 7.586 6.293 7.439 6.439C7.293 6.586 7.182 6.755 7.105 6.948C7.035 7.125 7 7.309 7 7.5C7 7.691 7.035 7.875 7.105 8.052C7.182 8.245 7.293 8.414 7.439 8.561Z"/></svg>
// Gentleface "slider" (line-round), MIT. https://gentleface.com/icons/slider
import type { SVGProps } from 'react';
export function SliderIcon(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="M6.732 5.732C6.976 5.488 7.259 5.303 7.58 5.176C7.875 5.059 8.182 5 8.5 5C8.818 5 9.125 5.059 9.42 5.176C9.741 5.303 10.024 5.488 10.268 5.732C10.512 5.976 10.697 6.259 10.824 6.58C10.879 6.717 10.921 6.858 10.95 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L10.95 8C10.921 8.143 10.879 8.283 10.824 8.42C10.697 8.741 10.512 9.024 10.268 9.268C10.024 9.512 9.741 9.697 9.42 9.824C9.125 9.941 8.818 10 8.5 10C8.182 10 7.875 9.941 7.58 9.824C7.259 9.697 6.976 9.512 6.732 9.268C6.488 9.024 6.303 8.741 6.176 8.42C6.059 8.125 6 7.818 6 7.5L6 8.5C6 8.641 5.952 8.759 5.856 8.856C5.759 8.952 5.641 9 5.5 9L2.264 9C2.169 9 2.077 8.97 2 8.914C1.7 8.808 1.459 8.626 1.275 8.366C1.092 8.107 1 7.818 1 7.5C1 7.182 1.092 6.893 1.275 6.634C1.459 6.374 1.7 6.192 2 6.086C2.077 6.03 2.169 6 2.264 6L5.5 6C5.641 6 5.759 6.048 5.856 6.144C5.952 6.241 6 6.359 6 6.5L6 7.5C6 7.182 6.059 6.875 6.176 6.58C6.303 6.259 6.488 5.976 6.732 5.732ZM7.439 8.561C7.586 8.707 7.755 8.818 7.948 8.895C8.125 8.965 8.309 9 8.5 9C8.691 9 8.875 8.965 9.052 8.895C9.245 8.818 9.414 8.707 9.561 8.561C9.707 8.414 9.818 8.245 9.895 8.052C9.965 7.875 10 7.691 10 7.5C10 7.309 9.965 7.125 9.895 6.948C9.818 6.755 9.707 6.586 9.561 6.439C9.414 6.293 9.245 6.182 9.052 6.105C8.875 6.035 8.691 6 8.5 6C8.309 6 8.125 6.035 7.948 6.105C7.755 6.182 7.586 6.293 7.439 6.439C7.293 6.586 7.182 6.755 7.105 6.948C7.035 7.125 7 7.309 7 7.5C7 7.691 7.035 7.875 7.105 8.052C7.182 8.245 7.293 8.414 7.439 8.561Z" />
</svg>
);
}Vue: see /icons/slider.md
Svelte: see /icons/slider.md
HTML img: see /icons/slider.md
CSS: see /icons/slider.md
Data URL: see /icons/slider.md
Sprite: see /icons/slider.md
SwiftUI: see /icons/slider.md
Compose: see /icons/slider.md
Android XML: see /icons/slider.md
Flutter: see /icons/slider.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. 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. More in how to use.
With npm: import { SliderIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- slider, range input, range slider, price range, fader
- Alternatives
sliders: adjust or tune settings, three tracks (adjust)
- Don’t confuse with
toggle: an on/off switch (toggle)
- Not for
- carousel (use
carousel-horizontal): slider is the range input (slider); an image slider is a carousel
- carousel (use
- Tags
- slider, range, range slider, seek bar, scrubber, volume slider, value, track, thumb, form control, ui, component
- Category
- Layout & interface
- Component name
SliderIcon- History
- added
- released in 0.2.0
- 20 px redrawn, 24 px redrawn, 20 px drawn, 24 px drawn
- Since
- version 0.2.0
Family 83
More layout & interface icons
app apps apps-alert apps-check apps-clock apps-gear apps-link apps-pencil apps-plus apps-search apps-sparkle apps-x cards-stacked checkbox checkbox-indeterminate checkbox-off · all layout & interface icons
For agents
Metadata: /icons/slider.json · Markdown: /icons/slider.md · SVG: https://gentleface.com/svg/{style}/16/slider.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/slider.png