gentleface

Gentleface › Files & folders › file-star

file-star icon

File star: favorite file, starred file, favourite file. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated file-star-flip · line-round

The star is tossed up off the file and falls back onto its badge, landing on one point and slapping flat. The blow flips the folded corner up on its crease, and it drops back with a small flap.

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.5 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="M3.14 1.264C3.242 1.007 3.391 0.781 3.586 0.586C3.781 0.391 4.007 0.242 4.264 0.14C4.5 0.047 4.746 0 5 0L7.5 0C7.886 0 8.258 0.074 8.615 0.222C8.972 0.37 9.287 0.58 9.561 0.854L12.146 3.439C12.42 3.713 12.63 4.028 12.778 4.385C12.926 4.742 13 5.114 13 5.5C13 5.641 12.952 5.759 12.856 5.856C12.759 5.952 12.641 6 12.5 6C12.359 6 12.241 5.952 12.144 5.856C12.048 5.759 12 5.641 12 5.5C12 5.329 11.978 5.162 11.934 5L10 5C9.746 5 9.5 4.953 9.264 4.86C9.007 4.758 8.781 4.609 8.586 4.414C8.391 4.219 8.242 3.993 8.14 3.736C8.047 3.5 8 3.254 8 3L8 1.066C7.838 1.022 7.671 1 7.5 1L5 1C4.724 1 4.488 1.098 4.293 1.293C4.098 1.488 4 1.724 4 2L4 12C4 12.276 4.098 12.512 4.293 12.707C4.488 12.902 4.724 13 5 13L7.5 13C7.641 13 7.759 13.048 7.856 13.144C7.952 13.241 8 13.359 8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14L5 14C4.746 14 4.5 13.953 4.264 13.86C4.007 13.758 3.781 13.609 3.586 13.414C3.391 13.219 3.242 12.993 3.14 12.736C3.047 12.5 3 12.254 3 12L3 2C3 1.746 3.047 1.5 3.14 1.264ZM9 1.707L9 3C9 3.276 9.098 3.512 9.293 3.707C9.488 3.902 9.724 4 10 4L11.293 4L9 1.707ZM15.071 10.084C15.155 10.139 15.216 10.214 15.255 10.309C15.294 10.403 15.304 10.499 15.284 10.598C15.265 10.696 15.219 10.781 15.146 10.854L13.719 12.281C13.652 12.348 13.607 12.428 13.585 12.52C13.564 12.612 13.568 12.703 13.598 12.793L14.049 14.147C14.082 14.247 14.084 14.346 14.053 14.446C14.023 14.545 13.965 14.626 13.882 14.69C13.798 14.754 13.704 14.788 13.6 14.791C13.497 14.795 13.401 14.767 13.313 14.709L11.777 13.685C11.693 13.629 11.601 13.601 11.5 13.601C11.399 13.601 11.307 13.629 11.223 13.685L9.687 14.709C9.599 14.767 9.503 14.795 9.4 14.791C9.296 14.788 9.202 14.754 9.118 14.69C9.035 14.626 8.977 14.545 8.947 14.446C8.916 14.346 8.918 14.247 8.951 14.147L9.402 12.793C9.432 12.703 9.436 12.612 9.415 12.52C9.393 12.428 9.348 12.348 9.281 12.281L7.854 10.854C7.781 10.781 7.735 10.696 7.716 10.598C7.696 10.499 7.706 10.403 7.745 10.309C7.784 10.214 7.845 10.139 7.929 10.084C8.012 10.028 8.105 10 8.207 10L10.14 10C10.247 10 10.345 9.969 10.432 9.906C10.519 9.843 10.58 9.76 10.614 9.658L11.057 8.329C11.089 8.233 11.145 8.156 11.227 8.098C11.308 8.039 11.399 8.01 11.5 8.01C11.601 8.01 11.692 8.039 11.773 8.098C11.855 8.156 11.911 8.233 11.943 8.329L12.386 9.658C12.42 9.76 12.481 9.843 12.568 9.906C12.655 9.969 12.753 10 12.86 10L14.793 10C14.895 10 14.988 10.028 15.071 10.084Z"/></svg>
React
// Gentleface "file-star" (line-round), MIT. https://gentleface.com/icons/file-star
import type { SVGProps } from 'react';

export function FileStarIcon(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="M3.14 1.264C3.242 1.007 3.391 0.781 3.586 0.586C3.781 0.391 4.007 0.242 4.264 0.14C4.5 0.047 4.746 0 5 0L7.5 0C7.886 0 8.258 0.074 8.615 0.222C8.972 0.37 9.287 0.58 9.561 0.854L12.146 3.439C12.42 3.713 12.63 4.028 12.778 4.385C12.926 4.742 13 5.114 13 5.5C13 5.641 12.952 5.759 12.856 5.856C12.759 5.952 12.641 6 12.5 6C12.359 6 12.241 5.952 12.144 5.856C12.048 5.759 12 5.641 12 5.5C12 5.329 11.978 5.162 11.934 5L10 5C9.746 5 9.5 4.953 9.264 4.86C9.007 4.758 8.781 4.609 8.586 4.414C8.391 4.219 8.242 3.993 8.14 3.736C8.047 3.5 8 3.254 8 3L8 1.066C7.838 1.022 7.671 1 7.5 1L5 1C4.724 1 4.488 1.098 4.293 1.293C4.098 1.488 4 1.724 4 2L4 12C4 12.276 4.098 12.512 4.293 12.707C4.488 12.902 4.724 13 5 13L7.5 13C7.641 13 7.759 13.048 7.856 13.144C7.952 13.241 8 13.359 8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14L5 14C4.746 14 4.5 13.953 4.264 13.86C4.007 13.758 3.781 13.609 3.586 13.414C3.391 13.219 3.242 12.993 3.14 12.736C3.047 12.5 3 12.254 3 12L3 2C3 1.746 3.047 1.5 3.14 1.264ZM9 1.707L9 3C9 3.276 9.098 3.512 9.293 3.707C9.488 3.902 9.724 4 10 4L11.293 4L9 1.707ZM15.071 10.084C15.155 10.139 15.216 10.214 15.255 10.309C15.294 10.403 15.304 10.499 15.284 10.598C15.265 10.696 15.219 10.781 15.146 10.854L13.719 12.281C13.652 12.348 13.607 12.428 13.585 12.52C13.564 12.612 13.568 12.703 13.598 12.793L14.049 14.147C14.082 14.247 14.084 14.346 14.053 14.446C14.023 14.545 13.965 14.626 13.882 14.69C13.798 14.754 13.704 14.788 13.6 14.791C13.497 14.795 13.401 14.767 13.313 14.709L11.777 13.685C11.693 13.629 11.601 13.601 11.5 13.601C11.399 13.601 11.307 13.629 11.223 13.685L9.687 14.709C9.599 14.767 9.503 14.795 9.4 14.791C9.296 14.788 9.202 14.754 9.118 14.69C9.035 14.626 8.977 14.545 8.947 14.446C8.916 14.346 8.918 14.247 8.951 14.147L9.402 12.793C9.432 12.703 9.436 12.612 9.415 12.52C9.393 12.428 9.348 12.348 9.281 12.281L7.854 10.854C7.781 10.781 7.735 10.696 7.716 10.598C7.696 10.499 7.706 10.403 7.745 10.309C7.784 10.214 7.845 10.139 7.929 10.084C8.012 10.028 8.105 10 8.207 10L10.14 10C10.247 10 10.345 9.969 10.432 9.906C10.519 9.843 10.58 9.76 10.614 9.658L11.057 8.329C11.089 8.233 11.145 8.156 11.227 8.098C11.308 8.039 11.399 8.01 11.5 8.01C11.601 8.01 11.692 8.039 11.773 8.098C11.855 8.156 11.911 8.233 11.943 8.329L12.386 9.658C12.42 9.76 12.481 9.843 12.568 9.906C12.655 9.969 12.753 10 12.86 10L14.793 10C14.895 10 14.988 10.028 15.071 10.084Z" />
    </svg>
  );
}
Vue
Vue: see /icons/file-star.md
Svelte
Svelte: see /icons/file-star.md
HTML img
HTML img: see /icons/file-star.md
CSS
CSS: see /icons/file-star.md
Data URL
Data URL: see /icons/file-star.md
Sprite
Sprite: see /icons/file-star.md
SwiftUI
SwiftUI: see /icons/file-star.md
Compose
Compose: see /icons/file-star.md
Android XML
Android XML: see /icons/file-star.md
Flutter
Flutter: see /icons/file-star.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 { FileStarIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
favorite file, starred file, favourite file
Example
Starred files
Alternatives
Don’t confuse with
Not for
  • ai document (use file-sparkle): the star means favorite, never AI
Built from
file + star
Tags
document, page, sheet, star
Category
Files & folders
Component name
FileStarIcon
History
  • added
  • released in 0.1.0
  • changed in 0.2.0
  • modifier star redrawn
Since
version 0.1.0

Family 84

More files & folders icons

For agents

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