npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@children-of-atom/octicons-svelte

v0.1.0

Published

Svelte components for GitHub Octicons

Downloads

94

Readme

octicons-svelte

Svelte components for GitHub Octicons — modern SVG icons and legacy font-based icons.

Two icon sets

| Set | Version | Rendering | Import path. | | ---------- | --------|----------------------------------- | ------------------------------------------ | | Modern | v19 | Inline <svg> | @children-of-atom/octicons-svelte | | Legacy | v2 | <span> with icon-* CSS classes | @children-of-atom/octicons-svelte/legacy |

Installation

pnpm add @children-of-atom/octicons-svelte

Svelte 5 is a required peer dependency:

pnpm add svelte@^5

Usage

Import using a namespace so icons are accessible via dot notation in Svelte templates:

<script lang="ts">
  import * as Octicon from '@children-of-atom/octicons-svelte';
</script>

<Octicon.AlertFill />
<Octicon.GitBranch size={24} />
<Octicon.Check aria-label="Success" />
<script lang="ts">
  import * as Octicon from '@children-of-atom/octicons-svelte/legacy';
</script>

<Octicon.Clock />
<Octicon.Gear size={14} />

Named imports work too if you prefer:

import { AlertFill, GitBranch } from "@children-of-atom/octicons-svelte";

Modern icon props

Modern icons render as <svg> elements and scale automatically.

| Prop | Type | Default | Description | | ----------------- | ------------------------------------------------------------- | ---------------- | ------------------------------------------------------------- | | size | number \| 'small' \| 'medium' \| 'large' | 16 | Icon size in px. Aliases: small=16, medium=32, large=64 | | fill | string | 'currentColor' | SVG fill color | | verticalAlign | 'middle' \| 'text-bottom' \| 'text-top' \| 'top' \| 'unset' | 'text-bottom' | Inline vertical-align style. Pass 'unset' to opt out | | class | string | — | Additional CSS class | | aria-label | string | — | Accessible label; sets role="img" automatically | | aria-labelledby | string | — | Same as above, via element ID reference | | ...rest | SVGAttributes | — | Any other SVG attribute |

When neither aria-label nor aria-labelledby is set, the icon is hidden from assistive technology (aria-hidden="true").

<!-- Decorative icon (hidden from screen readers) -->
<Octicon.Star />

<!-- Meaningful icon (announced by screen readers) -->
<Octicon.Star aria-label="Starred" />

<!-- Custom size and color -->
<Octicon.Heart size={32} fill="red" />

<!-- Size alias -->
<Octicon.AlertFill size="large" />

<!-- No vertical-align override -->
<Octicon.Gear verticalAlign="unset" />

Legacy icon props

Legacy icons render as <span> elements and depend on the icon-* CSS classes provided by the Pulsar/Atom theme.

| Prop | Type | Default | Description | | ----------- | ---------------------- | ------- | -------------------------------------------------------------------- | | size | number | — | When set, applies font-size and --icon-size CSS variable inline | | monospace | boolean | false | Centers the icon in a fixed-width box (useful in monospace contexts) | | class | string | — | Additional CSS class | | ...rest | HTMLAttributes<span> | — | Any other span attribute |

When size is omitted the icon inherits its size from the surrounding context, which is usually the right behavior inside status bar tiles and other Atom UI.

<!-- Inherits size from theme -->
<Octicon.Clock />

<!-- Explicit size -->
<Octicon.Gear size={14} />

<!-- Fixed-width for alignment in monospace contexts -->
<Octicon.Check monospace />

License

This work is licensed under The MIT License.