Skip to content

Icons & assets

Name the little graphics that make a website recognizable. Learn what to ask for, then find the right name in your icon library.

Icon = meaning. SVG = format. Favicon = location. The same small symbol could be an icon, drawn as an SVG, and used as a favicon in a browser tab.

Icon

“a tiny magnifying glass beside a search box”

A small symbol that suggests an action, object, or status. An icon is what the picture means; SVG is one way to draw it.

Use it for: Use familiar symbols for common actions, ideally beside a text label.

A picture alone is not a button. Put actions in a real button and give icon-only buttons an accessible name.

Try this prompt

Add a search icon beside the Search label. Hide the decorative icon from screen readers.

Read the source for Icon

SVG

“a logo that stays crisp when I zoom in”

A text-based image format that describes shapes and paths. Vector shapes stay sharp when resized; an SVG can contain an icon, logo, or illustration.

Use it for: Use for scalable logos, diagrams, and interface graphics.

Hide decorative SVGs from screen readers. Give meaningful standalone images an accessible text alternative.

Try this prompt

Use an SVG logo that scales without distortion and has a meaningful text alternative.

Favicon

“the tiny picture beside a browser tab title”

The small image identifying a site in browser tabs and bookmarks. Favicon describes its job, not a single file format.

Use it for: Use a simple, recognizable mark that works at a very small size.

A detailed full-size logo may become unreadable in a tab. Keep the page title meaningful too.

Try this prompt

Add a simple favicon that stays recognizable in browser tabs and bookmarks.

Read the source for Favicon

Sprite

“a sheet of little pictures reused around a page”

A collection of graphics stored together for reuse. A raster sprite sheet uses regions of one image; an SVG sprite stores reusable symbols.

Use it for: Use when many graphics share a source. Reference an SVG symbol with a use element.

A sprite is a way to organize assets, not an animation format. Each visible use still needs the right accessible name or decorative treatment.

Try this prompt

Group repeated icons in an SVG sprite. Give each icon instance appropriate accessible text or mark it decorative.

Read the source for Sprite

Lottie

“a little illustration that moves after a task finishes”

An animation format based on JSON, played by a compatible player. It can describe animated vector artwork; it is different from a video or an SVG file.

Use it for: Use for a small, purposeful animation such as a success illustration.

Provide a static alternative for reduced motion, and never rely on motion alone to communicate a result.

Try this prompt

Add a Lottie success animation with a static reduced-motion fallback and visible confirmation text.

Read the source for Lottie

Open Graph image

“the large picture attached to a shared link”

The image a service may show when someone shares a page link. The page points to it through og:image metadata; the sharing service controls the final preview.

Use it for: Use a clear title and recognizable artwork that still make sense when cropped.

This is a social preview asset, not the favicon. Use a publicly reachable absolute image URL and provide og:image:alt text.

Try this prompt

Add an Open Graph image for link previews with a readable title, an absolute URL, and descriptive image alt metadata.

Read the source for Open Graph image

One idea, different icon names

These are React component names, including the Icon suffix where required. The small drawings represent each idea; each library has its own artwork.

Common icon names. Verified against official documentation and source on 2026-10-18.
What you seeLucideHeroiconsPhosphor
Menuthree horizontal linesMenuBars3IconListIcon
Searcha magnifying glassSearchMagnifyingGlassIconMagnifyingGlassIcon
Closean X or crossXXMarkIconXIcon
Settingsa cog or gearSettingsCog6ToothIconGearIcon
Checka tick beside a completed itemCheckCheckIconCheckIcon
Deletea rubbish bin or trash canTrashTrashIconTrashIcon

Lucide

React import path

lucide-reactLucide usage and source

Heroicons

React import path

@heroicons/react/24/outlineHeroicons usage and source

Phosphor

React import path

@phosphor-icons/reactPhosphor usage and source

For Phosphor in React Server Components, use its documented @phosphor-icons/react/ssr import path. Match examples to the version installed in your project.

Make the meaning available to everyone

  • Use a real button for actions and a link for navigation. A clickable SVG alone is not enough.
  • Give an icon-only button a name such as “Close dialog”, not “X icon”. Keep its target at least 44 × 44 pixels.
  • Hide an icon from screen readers when nearby text already says the same thing. Give meaningful standalone graphics a text alternative.
  • Keep focus visible, and pair status colors or animation with text.