gentleface

Gentleface › Text & formatting › heading-2

heading-2 icon

Heading 2: heading 2, h2. 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="M7 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2C7.641 2 7.759 2.048 7.856 2.144C7.952 2.241 8 2.359 8 2.5L8 12.5C8 12.641 7.952 12.759 7.856 12.856C7.759 12.952 7.641 13 7.5 13C7.359 13 7.241 12.952 7.144 12.856C7.048 12.759 7 12.641 7 12.5L7 8L2 8L2 12.5C2 12.641 1.952 12.759 1.856 12.856C1.759 12.952 1.641 13 1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 7L7 7L7 2.5ZM12.854 8.146L13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L11.707 12L13.5 12C13.641 12 13.759 12.048 13.856 12.144C13.952 12.241 14 12.359 14 12.5C14 12.641 13.952 12.759 13.856 12.856C13.759 12.952 13.641 13 13.5 13L10.5 13C10.362 13 10.244 12.951 10.146 12.854C10.047 12.754 9.997 12.636 9.997 12.5C9.997 12.364 10.047 12.246 10.146 12.146L12.793 9.5L12.293 9L10.5 9C10.359 9 10.241 8.952 10.144 8.856C10.048 8.759 10 8.641 10 8.5C10 8.359 10.048 8.241 10.144 8.144C10.241 8.048 10.359 8 10.5 8L12.5 8C12.638 8 12.756 8.049 12.854 8.146Z"/></svg>
React
// Gentleface "heading-2" (line-round), MIT. https://gentleface.com/icons/heading-2
import type { SVGProps } from 'react';

export function Heading2Icon(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 2.5C7 2.359 7.048 2.241 7.144 2.144C7.241 2.048 7.359 2 7.5 2C7.641 2 7.759 2.048 7.856 2.144C7.952 2.241 8 2.359 8 2.5L8 12.5C8 12.641 7.952 12.759 7.856 12.856C7.759 12.952 7.641 13 7.5 13C7.359 13 7.241 12.952 7.144 12.856C7.048 12.759 7 12.641 7 12.5L7 8L2 8L2 12.5C2 12.641 1.952 12.759 1.856 12.856C1.759 12.952 1.641 13 1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 7L7 7L7 2.5ZM12.854 8.146L13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L11.707 12L13.5 12C13.641 12 13.759 12.048 13.856 12.144C13.952 12.241 14 12.359 14 12.5C14 12.641 13.952 12.759 13.856 12.856C13.759 12.952 13.641 13 13.5 13L10.5 13C10.362 13 10.244 12.951 10.146 12.854C10.047 12.754 9.997 12.636 9.997 12.5C9.997 12.364 10.047 12.246 10.146 12.146L12.793 9.5L12.293 9L10.5 9C10.359 9 10.241 8.952 10.144 8.856C10.048 8.759 10 8.641 10 8.5C10 8.359 10.048 8.241 10.144 8.144C10.241 8.048 10.359 8 10.5 8L12.5 8C12.638 8 12.756 8.049 12.854 8.146Z" />
    </svg>
  );
}
Vue
Vue: see /icons/heading-2.md
Svelte
Svelte: see /icons/heading-2.md
HTML img
HTML img: see /icons/heading-2.md
CSS
CSS: see /icons/heading-2.md
Data URL
Data URL: see /icons/heading-2.md
Sprite
Sprite: see /icons/heading-2.md
SwiftUI
SwiftUI: see /icons/heading-2.md
Compose
Compose: see /icons/heading-2.md
Android XML
Android XML: see /icons/heading-2.md
Flutter
Flutter: see /icons/heading-2.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
heading 2, h2
Tags
heading, h2, level-2, title, header, headline, text, format, letter, h, number
Category
Text & formatting
Component name
Heading2Icon
History
  • added

Family 21

More text & formatting icons

For agents

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

Feedback