pro-laico

payload icons

by pro-laico
payload-plugins
Media & images
v3
^3.0.0
MIT

Overview

Summary generated from the README

Adds an Icon upload collection to Payload that optimizes and sanitizes every SVG on save using svgo, viewBox tightening and currentColor theming. It provides an Icon server component that fetches an icon by name and inlines the SVG. Requires Payload 3 and React 19, and Next.js 15 or later to render icons. Declarative seeding is available through a companion seed package.

Features

  • Icon upload collection for SVG files
  • Optimizes and sanitizes SVGs on save with svgo
  • Tightens viewBox and applies currentColor for theming
  • Server component that fetches and inlines icons by name
  • Declarative seeding through the companion seed package

Use cases

  • Manage a site's icon set from the Payload admin instead of bundling SVG files
  • Render themable inline SVG icons that follow the surrounding text color in Next.js

From the author

SVG icons for Payload CMS: an Icon upload collection that optimizes and sanitizes SVGs on save (svgo + viewBox tightening + currentColor theming), a drop-in <Icon name> server component that fetches and inlines the SVG, and one-line declarative seeding via @pro-laico/payload-seed.

Installation

npm i @pro-laico/payload-icons

18

Stars

1

Forks

1

Open Issues

3 months ago

Last Updated

19

Weekly Downloads

v0.8.5

npm Version

279.7 KB

Unpacked Size

3

Dependencies

Repository stars

18+2 since Sep 7

Show data
Repository stars by day (UTC)
DateStars
Dec 6, 202618
Dec 5, 202618
Dec 4, 202618
Dec 3, 202618
Dec 2, 202618
Dec 1, 202618
Nov 30, 202618
Nov 29, 202618
Nov 28, 202618
Nov 27, 202619
Nov 26, 202619
Nov 25, 202619
Nov 24, 202619
Nov 23, 202619
Nov 22, 202619
Nov 21, 202619
Nov 20, 202619
Nov 19, 202619
Nov 18, 202619
Nov 17, 202618
Nov 16, 202618
Nov 15, 202618
Nov 14, 202618
Nov 13, 202618
Nov 12, 202618
Nov 11, 202618
Nov 10, 202618
Nov 9, 202618
Nov 8, 202618
Nov 7, 202618
Nov 6, 202618
Nov 5, 202618
Nov 4, 202618
Nov 3, 202618
Nov 2, 202618
Nov 1, 202618
Oct 31, 202618
Oct 30, 202618
Oct 29, 202618
Oct 28, 202618
Oct 27, 202618
Oct 26, 202618
Oct 25, 202618
Oct 24, 202618
Oct 23, 202618
Oct 22, 202618
Oct 21, 202617
Oct 20, 202617
Oct 19, 202617
Oct 18, 202617
Oct 17, 202617
Oct 16, 202617
Oct 15, 202617
Oct 14, 202617
Oct 13, 202617
Oct 12, 202617
Oct 11, 202617
Oct 10, 202617
Oct 9, 202617
Oct 8, 202617
Oct 7, 202617
Oct 6, 202617
Oct 5, 202617
Oct 4, 202617
Oct 3, 202617
Oct 2, 202616
Oct 1, 202616
Sep 30, 202616
Sep 29, 202616
Sep 28, 202616
Sep 27, 202616
Sep 26, 202616
Sep 25, 202616
Sep 24, 202616
Sep 23, 202616
Sep 22, 202616
Sep 21, 202616
Sep 20, 202616
Sep 19, 202616
Sep 18, 202616
Sep 17, 202616
Sep 16, 202616
Sep 15, 202616
Sep 14, 202616
Sep 13, 202616
Sep 12, 202616
Sep 11, 202616
Sep 10, 202616
Sep 9, 202616
Sep 8, 202616
Sep 7, 202616

Shared by 7 plugins in pro-laico/payload-plugins.

npm weekly downloads

19−5 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202619
Dec 5, 202621
Dec 4, 202622
Dec 3, 202623
Dec 2, 20266
Dec 1, 202623
Nov 30, 202623
Nov 29, 202622
Nov 28, 202620
Nov 27, 202618
Nov 26, 202618
Nov 25, 202619
Nov 24, 20262
Nov 23, 20265
Nov 22, 202610
Nov 21, 202611
Nov 20, 202611
Nov 19, 202610
Nov 18, 202624
Nov 17, 202625
Nov 16, 202623
Nov 15, 202619
Nov 14, 202618
Nov 13, 202618
Nov 12, 202619
Nov 11, 20266
Nov 10, 202620
Nov 9, 202619
Nov 8, 202632
Nov 7, 202633
Nov 6, 202633
Nov 5, 202633
Nov 4, 202636
Nov 3, 202622
Nov 2, 202623
Nov 1, 202618
Oct 31, 202620
Oct 30, 202621
Oct 29, 202620
Oct 28, 202615
Oct 27, 202614
Oct 26, 202615
Oct 25, 20266
Oct 24, 20266
Oct 23, 20265
Oct 22, 20269
Oct 21, 202612
Oct 20, 202616
Oct 19, 202617
Oct 18, 202618
Oct 17, 202618
Oct 16, 202628
Oct 15, 202632
Oct 14, 202635
Oct 13, 202633
Oct 12, 202632
Oct 11, 202632
Oct 10, 202630
Oct 9, 202620
Oct 8, 202612
Oct 7, 20266
Oct 6, 202613
Oct 5, 202611
Oct 4, 202629
Oct 3, 202628
Oct 2, 202630
Oct 1, 202631
Sep 30, 202631
Sep 29, 202631
Sep 28, 202632
Sep 27, 202613
Sep 26, 202625
Sep 25, 202626
Sep 24, 202626
Sep 23, 202637
Sep 22, 202632
Sep 21, 202648
Sep 20, 202649
Sep 19, 202638
Sep 18, 202635
Sep 17, 202640
Sep 16, 202634
Sep 15, 202631
Sep 14, 202616
Sep 13, 202616
Sep 12, 202616
Sep 11, 202616
Sep 10, 202611
Sep 9, 20267
Sep 8, 202625
Sep 7, 202624

Each point is npm's rolling 7-day download count.

Health Score

53/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1281664108-payload-icons.svg)](https://payloaddirectory.dev/plugins/1281664108-payload-icons)
HTML
<a href="https://payloaddirectory.dev/plugins/1281664108-payload-icons"><img src="https://payloaddirectory.dev/badge/1281664108-payload-icons.svg" alt="Payload Directory"></a>
Updated Aug 14, 2026Created Jun 26, 2026Published Aug 14, 2026

README

@pro-laico/payload-icons

SVG icons for Payload CMS — an Icon upload collection that optimizes and sanitizes every SVG on save, plus an <Icon name="…" /> server component you seed once with your app's Payload session (createIcon(getPayload({ config }))).

pnpm add @pro-laico/payload-icons

Requires Payload ^3 and React 19. Next.js 15+ to render icons — <Icon> reads draftMode() and miss-tracking uses after(); the collection, admin, and SVG pipeline work in any Payload app.

Documentation →

Similar plugins