Skip to content

Add @primer/octicons-react-symbols - #1303

Closed
joshblack with Copilot wants to merge 3 commits into
mainfrom
copilot/port-over-pr-8029
Closed

Add @primer/octicons-react-symbols#1303
joshblack with Copilot wants to merge 3 commits into
mainfrom
copilot/port-over-pr-8029

Conversation

Copilot AI commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Ports primer/react#8029 into Octicons. The new @primer/octicons-react-symbols package reduces repeated SVG markup by rendering shared symbol definitions and lightweight references.

Changes

  • Generates symbol and reference components for every Octicon.
  • Exposes OcticonSymbols and createIconReference.
  • Integrates workspace builds, releases, package validation, and browser tests.
  • Adds package documentation and release metadata.

Usage

import {CheckIconReference, CheckSymbol, OcticonSymbols} from '@primer/octicons-react-symbols'

<OcticonSymbols symbols={[CheckSymbol]}>
  <CheckIconReference aria-label="Complete" />
</OcticonSymbols>

@changeset-bot

changeset-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f70e2f5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@primer/octicons Minor
@primer/octicons-react-symbols Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants