Icon
Icons at GitHub are called Octicons, which are available in various implementations including React, Figma, Rails, and Styled System.
On this page
Work in progressWe are currently transferring the Rails documentation for Octicon from a different site to this page. To view the original documentation, please visit the Primer ViewComponents documentation for Octicon.
v0.1.5BetaNot reviewed for accessibility
Description
Octicon renders an Octicons with System arguments.
Octicon can also be rendered with the primer_octicon helper, which accepts the same arguments.
Arguments
| Name | Default | Description |
|---|---|---|
icon_name |
| Symbol, StringName of Octicons to use. |
icon |
| Symbol, StringName of Octicons to use. |
size |
| SymbolOne of |
use_symbol |
| BooleanEXPERIMENTAL (May change or be removed) - Set to true when using with |
system_arguments | N/A | Hash |