gentleface

Gentleface › Text & formatting › underline

underline icon

Underline: underline, text underline, underlined, format underline. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated underline-draw · line-round

The rule runs off to the right and the letter sinks into its place. The rule draws back from the left under the letter, which lifts past its height and 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.2 s to 1.85 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="M6.288 8.707C6.411 9.045 6.612 9.299 6.891 9.468C7.17 9.637 7.537 9.722 7.994 9.722C8.459 9.722 8.828 9.637 9.103 9.468C9.378 9.299 9.578 9.045 9.705 8.707C9.824 8.39 9.888 8.003 9.895 7.545C9.896 7.514 9.896 7.483 9.896 7.452L9.896 2L11.303 2L11.303 7.224C11.303 8.086 11.195 8.796 10.98 9.354C10.764 9.912 10.413 10.326 9.927 10.596C9.441 10.867 8.792 11.002 7.981 11.002C7.17 11.002 6.525 10.867 6.047 10.596C5.57 10.326 5.225 9.912 5.014 9.354C4.803 8.796 4.697 8.086 4.697 7.224L4.697 2L6.104 2L6.104 7.452C6.104 7.951 6.165 8.369 6.288 8.707ZM3.144 12.856C3.048 12.759 3 12.641 3 12.5C3 12.359 3.048 12.241 3.144 12.144C3.241 12.048 3.359 12 3.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L3.5 13C3.359 13 3.241 12.952 3.144 12.856Z"/></svg>
React
// Gentleface "underline" (line-round), MIT. https://gentleface.com/icons/underline
import type { SVGProps } from 'react';

export function UnderlineIcon(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="M6.288 8.707C6.411 9.045 6.612 9.299 6.891 9.468C7.17 9.637 7.537 9.722 7.994 9.722C8.459 9.722 8.828 9.637 9.103 9.468C9.378 9.299 9.578 9.045 9.705 8.707C9.824 8.39 9.888 8.003 9.895 7.545C9.896 7.514 9.896 7.483 9.896 7.452L9.896 2L11.303 2L11.303 7.224C11.303 8.086 11.195 8.796 10.98 9.354C10.764 9.912 10.413 10.326 9.927 10.596C9.441 10.867 8.792 11.002 7.981 11.002C7.17 11.002 6.525 10.867 6.047 10.596C5.57 10.326 5.225 9.912 5.014 9.354C4.803 8.796 4.697 8.086 4.697 7.224L4.697 2L6.104 2L6.104 7.452C6.104 7.951 6.165 8.369 6.288 8.707ZM3.144 12.856C3.048 12.759 3 12.641 3 12.5C3 12.359 3.048 12.241 3.144 12.144C3.241 12.048 3.359 12 3.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L3.5 13C3.359 13 3.241 12.952 3.144 12.856Z" />
    </svg>
  );
}
Vue
Vue: see /icons/underline.md
Svelte
Svelte: see /icons/underline.md
HTML img
HTML img: see /icons/underline.md
CSS
CSS: see /icons/underline.md
Data URL
Data URL: see /icons/underline.md
Sprite
Sprite: see /icons/underline.md
SwiftUI
SwiftUI: see /icons/underline.md
Compose
Compose: see /icons/underline.md
Android XML
Android XML: see /icons/underline.md
Flutter
Flutter: see /icons/underline.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 { UnderlineIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
underline, text underline, underlined, format underline
Tags
underline, underscore, text, format, letter, u
Category
Text & formatting
Component name
UnderlineIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
  • 20 px redrawn, 24 px redrawn
  • 20 px redrawn, 24 px redrawn
  • 16 px redrawn
  • changed in 0.7.0
Since
version 0.1.0

Family 40

More text & formatting icons

For agents

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