Gentleface › Layout & interface › accordion
accordion icon
accordionAccordion: accordion, collapsible sections, collapsible, expansion panel. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated accordion-open · line-round
The chevron flips, the content rows retract from the bottom one up, and the lower section slides up to close the panel. Then the chevron flips back, the lower section is pushed down past its place, and the rows write in behind it.
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.2 s to 2.25 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="M15 3.5C15 3.638 14.951 3.756 14.854 3.854C14.754 3.953 14.636 4.003 14.5 4.003C14.364 4.003 14.246 3.953 14.146 3.854L12.5 2.207L10.854 3.854C10.754 3.953 10.636 4.003 10.5 4.003C10.364 4.003 10.246 3.953 10.146 3.854C10.049 3.756 10 3.638 10 3.5C10 3.362 10.049 3.244 10.146 3.146L12.146 1.146C12.246 1.047 12.364 0.997 12.5 0.997C12.636 0.997 12.754 1.047 12.854 1.146L14.854 3.146C14.951 3.244 15 3.362 15 3.5ZM1.144 2.856C1.048 2.759 1 2.641 1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2L7.5 2C7.641 2 7.759 2.048 7.856 2.144C7.952 2.241 8 2.359 8 2.5C8 2.641 7.952 2.759 7.856 2.856C7.759 2.952 7.641 3 7.5 3L1.5 3C1.359 3 1.241 2.952 1.144 2.856ZM3 6.5C3 6.359 3.048 6.241 3.144 6.144C3.241 6.048 3.359 6 3.5 6L11.5 6C11.641 6 11.759 6.048 11.856 6.144C11.952 6.241 12 6.359 12 6.5C12 6.641 11.952 6.759 11.856 6.856C11.759 6.952 11.641 7 11.5 7L3.5 7C3.359 7 3.241 6.952 3.144 6.856C3.048 6.759 3 6.641 3 6.5ZM8.856 8.144C8.952 8.241 9 8.359 9 8.5C9 8.641 8.952 8.759 8.856 8.856C8.759 8.952 8.641 9 8.5 9L3.5 9C3.359 9 3.241 8.952 3.144 8.856C3.048 8.759 3 8.641 3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L8.5 8C8.641 8 8.759 8.048 8.856 8.144ZM14.146 11.146C14.246 11.047 14.364 10.997 14.5 10.997C14.636 10.997 14.754 11.047 14.854 11.146C14.953 11.246 15.003 11.364 15.003 11.5C15.003 11.636 14.953 11.754 14.854 11.854L12.854 13.854C12.754 13.953 12.636 14.003 12.5 14.003C12.364 14.003 12.246 13.953 12.146 13.854L10.146 11.854C10.047 11.754 9.997 11.636 9.997 11.5C9.997 11.364 10.047 11.246 10.146 11.146C10.246 11.047 10.364 10.997 10.5 10.997C10.636 10.997 10.754 11.047 10.854 11.146L12.5 12.793L14.146 11.146ZM7.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5C1 12.359 1.048 12.241 1.144 12.144C1.241 12.048 1.359 12 1.5 12L7.5 12C7.641 12 7.759 12.048 7.856 12.144C7.952 12.241 8 12.359 8 12.5C8 12.641 7.952 12.759 7.856 12.856C7.759 12.952 7.641 13 7.5 13Z"/></svg>
// Gentleface "accordion" (line-round), MIT. https://gentleface.com/icons/accordion
import type { SVGProps } from 'react';
export function AccordionIcon(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="M15 3.5C15 3.638 14.951 3.756 14.854 3.854C14.754 3.953 14.636 4.003 14.5 4.003C14.364 4.003 14.246 3.953 14.146 3.854L12.5 2.207L10.854 3.854C10.754 3.953 10.636 4.003 10.5 4.003C10.364 4.003 10.246 3.953 10.146 3.854C10.049 3.756 10 3.638 10 3.5C10 3.362 10.049 3.244 10.146 3.146L12.146 1.146C12.246 1.047 12.364 0.997 12.5 0.997C12.636 0.997 12.754 1.047 12.854 1.146L14.854 3.146C14.951 3.244 15 3.362 15 3.5ZM1.144 2.856C1.048 2.759 1 2.641 1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2L7.5 2C7.641 2 7.759 2.048 7.856 2.144C7.952 2.241 8 2.359 8 2.5C8 2.641 7.952 2.759 7.856 2.856C7.759 2.952 7.641 3 7.5 3L1.5 3C1.359 3 1.241 2.952 1.144 2.856ZM3 6.5C3 6.359 3.048 6.241 3.144 6.144C3.241 6.048 3.359 6 3.5 6L11.5 6C11.641 6 11.759 6.048 11.856 6.144C11.952 6.241 12 6.359 12 6.5C12 6.641 11.952 6.759 11.856 6.856C11.759 6.952 11.641 7 11.5 7L3.5 7C3.359 7 3.241 6.952 3.144 6.856C3.048 6.759 3 6.641 3 6.5ZM8.856 8.144C8.952 8.241 9 8.359 9 8.5C9 8.641 8.952 8.759 8.856 8.856C8.759 8.952 8.641 9 8.5 9L3.5 9C3.359 9 3.241 8.952 3.144 8.856C3.048 8.759 3 8.641 3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L8.5 8C8.641 8 8.759 8.048 8.856 8.144ZM14.146 11.146C14.246 11.047 14.364 10.997 14.5 10.997C14.636 10.997 14.754 11.047 14.854 11.146C14.953 11.246 15.003 11.364 15.003 11.5C15.003 11.636 14.953 11.754 14.854 11.854L12.854 13.854C12.754 13.953 12.636 14.003 12.5 14.003C12.364 14.003 12.246 13.953 12.146 13.854L10.146 11.854C10.047 11.754 9.997 11.636 9.997 11.5C9.997 11.364 10.047 11.246 10.146 11.146C10.246 11.047 10.364 10.997 10.5 10.997C10.636 10.997 10.754 11.047 10.854 11.146L12.5 12.793L14.146 11.146ZM7.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5C1 12.359 1.048 12.241 1.144 12.144C1.241 12.048 1.359 12 1.5 12L7.5 12C7.641 12 7.759 12.048 7.856 12.144C7.952 12.241 8 12.359 8 12.5C8 12.641 7.952 12.759 7.856 12.856C7.759 12.952 7.641 13 7.5 13Z" />
</svg>
);
}Vue: see /icons/accordion.md
Svelte: see /icons/accordion.md
HTML img: see /icons/accordion.md
CSS: see /icons/accordion.md
Data URL: see /icons/accordion.md
Sprite: see /icons/accordion.md
SwiftUI: see /icons/accordion.md
Compose: see /icons/accordion.md
Android XML: see /icons/accordion.md
Flutter: see /icons/accordion.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 { AccordionIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- accordion, collapsible sections, collapsible, expansion panel
- Alternatives
chevron-down: the expand action of one section (expand)
- Tags
- accordion, collapsible, collapse, expand, expansion panel, disclosure, sections, faq, toggle sections, ui, component
- Category
- Layout & interface
- Component name
AccordionIcon- History
- added
- 20 px drawn, 24 px drawn
- released in 0.2.0
- Since
- version 0.2.0
Family 92
More layout & interface icons
app apps apps-alert apps-check apps-clock apps-gear apps-link apps-off apps-pencil apps-plus apps-search apps-shield apps-sparkle apps-x cards-stacked checkbox · all layout & interface icons
For agents
Metadata: /icons/accordion.json · Markdown: /icons/accordion.md · SVG: https://gentleface.com/svg/{style}/16/accordion.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/accordion.png