gentleface

Gentleface › Shapes › triangle

triangle icon

Triangle: triangle, triangle shape. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

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.635 10.762C13.771 10.984 13.844 11.225 13.855 11.485C13.866 11.745 13.814 11.991 13.697 12.224C13.578 12.462 13.406 12.65 13.179 12.79C12.953 12.93 12.707 13 12.441 13L2.559 13C2.293 13 2.047 12.93 1.821 12.79C1.594 12.65 1.422 12.462 1.303 12.224C1.186 11.991 1.134 11.745 1.145 11.485C1.156 11.225 1.229 10.984 1.365 10.762L6.313 2.666C6.439 2.459 6.608 2.296 6.819 2.178C7.031 2.059 7.258 2 7.5 2C7.742 2 7.969 2.059 8.181 2.178C8.392 2.296 8.561 2.459 8.687 2.666L13.635 10.762ZM2.144 11.527C2.14 11.615 2.158 11.698 2.197 11.776C2.231 11.845 2.281 11.899 2.346 11.94C2.412 11.98 2.482 12 2.559 12L12.441 12C12.518 12 12.588 11.98 12.654 11.94C12.719 11.899 12.769 11.845 12.803 11.776C12.842 11.698 12.86 11.615 12.856 11.527C12.852 11.44 12.828 11.359 12.782 11.284L7.834 3.187C7.796 3.125 7.749 3.078 7.693 3.047C7.638 3.016 7.573 3 7.5 3C7.427 3 7.362 3.016 7.307 3.047C7.251 3.078 7.204 3.125 7.166 3.187L2.218 11.284C2.172 11.359 2.148 11.44 2.144 11.527Z"/></svg>
React
// Gentleface "triangle" (line-round), MIT. https://gentleface.com/icons/triangle
import type { SVGProps } from 'react';

export function TriangleIcon(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.635 10.762C13.771 10.984 13.844 11.225 13.855 11.485C13.866 11.745 13.814 11.991 13.697 12.224C13.578 12.462 13.406 12.65 13.179 12.79C12.953 12.93 12.707 13 12.441 13L2.559 13C2.293 13 2.047 12.93 1.821 12.79C1.594 12.65 1.422 12.462 1.303 12.224C1.186 11.991 1.134 11.745 1.145 11.485C1.156 11.225 1.229 10.984 1.365 10.762L6.313 2.666C6.439 2.459 6.608 2.296 6.819 2.178C7.031 2.059 7.258 2 7.5 2C7.742 2 7.969 2.059 8.181 2.178C8.392 2.296 8.561 2.459 8.687 2.666L13.635 10.762ZM2.144 11.527C2.14 11.615 2.158 11.698 2.197 11.776C2.231 11.845 2.281 11.899 2.346 11.94C2.412 11.98 2.482 12 2.559 12L12.441 12C12.518 12 12.588 11.98 12.654 11.94C12.719 11.899 12.769 11.845 12.803 11.776C12.842 11.698 12.86 11.615 12.856 11.527C12.852 11.44 12.828 11.359 12.782 11.284L7.834 3.187C7.796 3.125 7.749 3.078 7.693 3.047C7.638 3.016 7.573 3 7.5 3C7.427 3 7.362 3.016 7.307 3.047C7.251 3.078 7.204 3.125 7.166 3.187L2.218 11.284C2.172 11.359 2.148 11.44 2.144 11.527Z" />
    </svg>
  );
}
Vue
Vue: see /icons/triangle.md
Svelte
Svelte: see /icons/triangle.md
HTML img
HTML img: see /icons/triangle.md
CSS
CSS: see /icons/triangle.md
Data URL
Data URL: see /icons/triangle.md
Sprite
Sprite: see /icons/triangle.md
SwiftUI
SwiftUI: see /icons/triangle.md
Compose
Compose: see /icons/triangle.md
Android XML
Android XML: see /icons/triangle.md
Flutter
Flutter: see /icons/triangle.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. 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.

Meaning

Use it for
triangle, triangle shape
Don’t confuse with
  • play: a right-pointing triangle means play (play)
  • alert-triangle: a triangle with ! means warning (alert-triangle)
Also fits
  • pyramid solid: the flat triangle shape (triangle)
Tags
triangle, shape, delta, polygon, pyramid, geometry
Category
Shapes
Component name
TriangleIcon
History
  • added

More shapes icons

For agents

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

Feedback