gentleface

Gentleface › Layout & interface › sidebar-collapse

sidebar-collapse icon

Sidebar collapse: collapse sidebar, hide sidebar, close sidebar. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated sidebar-collapse-slide · line-round

The chevron pushes the divider left until the sidebar closes against the frame, then flips to point right. It then runs right with the divider following past its place, and flips back.

Download SVG

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.25 s to 2.55 s. Examples and helper.

Code line-round

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="M13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736ZM3.293 12.707C3.488 12.902 3.724 13 4 13L6 13L6 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707ZM12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L7 3L7 13L12 13ZM10.854 9.146C10.953 9.246 11.003 9.364 11.003 9.5C11.003 9.636 10.953 9.754 10.854 9.854C10.754 9.953 10.636 10.003 10.5 10.003C10.364 10.003 10.246 9.953 10.146 9.854L8.146 7.854C8.047 7.754 7.997 7.636 7.997 7.5C7.997 7.364 8.047 7.246 8.146 7.146L10.146 5.146C10.246 5.047 10.364 4.997 10.5 4.997C10.636 4.997 10.754 5.047 10.854 5.146C10.951 5.244 11 5.362 11 5.5C11 5.638 10.951 5.756 10.854 5.854L9.207 7.5L10.854 9.146Z"/></svg>
React
// Gentleface "sidebar-collapse" (line-round), MIT. https://gentleface.com/icons/sidebar-collapse
import type { SVGProps } from 'react';

export function SidebarCollapseIcon(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="M13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736ZM3.293 12.707C3.488 12.902 3.724 13 4 13L6 13L6 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707ZM12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L7 3L7 13L12 13ZM10.854 9.146C10.953 9.246 11.003 9.364 11.003 9.5C11.003 9.636 10.953 9.754 10.854 9.854C10.754 9.953 10.636 10.003 10.5 10.003C10.364 10.003 10.246 9.953 10.146 9.854L8.146 7.854C8.047 7.754 7.997 7.636 7.997 7.5C7.997 7.364 8.047 7.246 8.146 7.146L10.146 5.146C10.246 5.047 10.364 4.997 10.5 4.997C10.636 4.997 10.754 5.047 10.854 5.146C10.951 5.244 11 5.362 11 5.5C11 5.638 10.951 5.756 10.854 5.854L9.207 7.5L10.854 9.146Z" />
    </svg>
  );
}
Vue
Vue: see /icons/sidebar-collapse.md
Svelte
Svelte: see /icons/sidebar-collapse.md
HTML img
HTML img: see /icons/sidebar-collapse.md
CSS
CSS: see /icons/sidebar-collapse.md
Data URL
Data URL: see /icons/sidebar-collapse.md
Sprite
Sprite: see /icons/sidebar-collapse.md
SwiftUI
SwiftUI: see /icons/sidebar-collapse.md
Compose
Compose: see /icons/sidebar-collapse.md
Android XML
Android XML: see /icons/sidebar-collapse.md
Flutter
Flutter: see /icons/sidebar-collapse.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 { SidebarCollapseIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
collapse sidebar, hide sidebar, close sidebar
Also fits
  • sidebar: a button that only hides the sidebar (collapse-sidebar)
Tags
sidebar, collapse, hide, close, panel, layout, toggle-sidebar
Category
Layout & interface
Component name
SidebarCollapseIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 92

More layout & interface icons

For agents

Metadata: /icons/sidebar-collapse.json · Markdown: /icons/sidebar-collapse.md · SVG: https://gentleface.com/svg/{style}/16/sidebar-collapse.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/sidebar-collapse.png