gentleface

Gentleface › Arrows › fold

fold icon

Fold: fold, fold section, fold code, collapse region. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated fold-close · line-round

The two arrows press in on the crease from both sides and its middle dashes stretch to close the gaps, making one solid line. Then the arrows spring back past their places, the dashes shrink back and everything settles.

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 1.65 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="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 4.293L9.146 3.146C9.246 3.047 9.364 2.997 9.5 2.997C9.636 2.997 9.754 3.047 9.854 3.146C9.951 3.244 10 3.362 10 3.5C10 3.638 9.951 3.756 9.854 3.854L7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5.146 3.854C5.049 3.756 5 3.638 5 3.5C5 3.362 5.049 3.244 5.146 3.146C5.246 3.047 5.364 2.997 5.5 2.997C5.636 2.997 5.754 3.047 5.854 3.146L7 4.293L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM3 8L1 8L1 7L3 7L3 8ZM6 8L4 8L4 7L6 7L6 8ZM11 8L9 8L9 7L11 7L11 8ZM14 8L12 8L12 7L14 7L14 8ZM10.003 11.5C10.003 11.636 9.953 11.754 9.854 11.854C9.754 11.953 9.636 12.003 9.5 12.003C9.364 12.003 9.246 11.953 9.146 11.854L8 10.707L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 10.707L5.854 11.854C5.756 11.951 5.638 12 5.5 12C5.362 12 5.244 11.951 5.146 11.854C5.047 11.754 4.997 11.636 4.997 11.5C4.997 11.364 5.047 11.246 5.146 11.146L7.146 9.146C7.246 9.047 7.364 8.997 7.5 8.997C7.636 8.997 7.754 9.047 7.854 9.146L9.854 11.146C9.953 11.246 10.003 11.364 10.003 11.5Z"/></svg>
React
// Gentleface "fold" (line-round), MIT. https://gentleface.com/icons/fold
import type { SVGProps } from 'react';

export function FoldIcon(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="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 4.293L9.146 3.146C9.246 3.047 9.364 2.997 9.5 2.997C9.636 2.997 9.754 3.047 9.854 3.146C9.951 3.244 10 3.362 10 3.5C10 3.638 9.951 3.756 9.854 3.854L7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5.146 3.854C5.049 3.756 5 3.638 5 3.5C5 3.362 5.049 3.244 5.146 3.146C5.246 3.047 5.364 2.997 5.5 2.997C5.636 2.997 5.754 3.047 5.854 3.146L7 4.293L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM3 8L1 8L1 7L3 7L3 8ZM6 8L4 8L4 7L6 7L6 8ZM11 8L9 8L9 7L11 7L11 8ZM14 8L12 8L12 7L14 7L14 8ZM10.003 11.5C10.003 11.636 9.953 11.754 9.854 11.854C9.754 11.953 9.636 12.003 9.5 12.003C9.364 12.003 9.246 11.953 9.146 11.854L8 10.707L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 10.707L5.854 11.854C5.756 11.951 5.638 12 5.5 12C5.362 12 5.244 11.951 5.146 11.854C5.047 11.754 4.997 11.636 4.997 11.5C4.997 11.364 5.047 11.246 5.146 11.146L7.146 9.146C7.246 9.047 7.364 8.997 7.5 8.997C7.636 8.997 7.754 9.047 7.854 9.146L9.854 11.146C9.953 11.246 10.003 11.364 10.003 11.5Z" />
    </svg>
  );
}
Vue
Vue: see /icons/fold.md
Svelte
Svelte: see /icons/fold.md
HTML img
HTML img: see /icons/fold.md
CSS
CSS: see /icons/fold.md
Data URL
Data URL: see /icons/fold.md
Sprite
Sprite: see /icons/fold.md
SwiftUI
SwiftUI: see /icons/fold.md
Compose
Compose: see /icons/fold.md
Android XML
Android XML: see /icons/fold.md
Flutter
Flutter: see /icons/fold.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 { FoldIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
fold, fold section, fold code, collapse region
Alternatives
Also fits
  • collapse: fold a code region in an editor gutter (fold)
  • show less: fold a code region in an editor (fold)
  • fold horizontal: fold rows toward a horizontal line (fold)
Tags
fold, collapse, section, code-folding, converge, arrows, line
Category
Arrows
Component name
FoldIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 5

More arrows icons

For agents

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