UNPKG

ranui

Version:

A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.

14 lines (13 loc) 827 B
/** * Core action glyphs that `<r-icon>` registers automatically on load (see index.ts), so * any component or app can use `<r-icon name="copy">` without importing/registering them. * The rest of `assets/icons/` stays opt-in via `registerBuiltinIcons()`. Keep this set * small — every `<r-icon>` consumer pays for these ~2KB. * * NOTE: these are *outline/stroke* glyphs (unlike ranui's filled 1024-grid builtins). * `r-icon`'s `setColor` forces an inline `fill: currentColor` on the <svg> root, which * would flood-fill an outline icon — so each of these SVGs wraps its shapes in a * `<g fill="none">`; the group's own `fill` attribute isn't touched by that inline style, * so the icon stays a clean outline. Author any future stroke icon the same way. */ export declare const coreIcons: Record<string, string>;