Skip to content
On this page

Octicon

Use octicon to render an octicon with system arguments.
  • Beta
  • Not reviewed for accessibility
On this page

Octicon renders an Octicon with System arguments. Octicon can also be rendered with the primer_octicon helper, which accepts the same arguments.

Arguments

NameTypeDefaultDescription
icon_nameSymbol, StringnilName of Octicon to use.
iconSymbol, StringnilName of Octicon to use.
sizeSymbol:smallOne of :xsmall (12), :small (16), or :medium (24).
use_symbolBooleanfalseEXPERIMENTAL (May change or be removed) - Set to true when using with OcticonSymbols.
system_argumentsHashN/ASystem arguments

Examples

Default

<%= render(Primer::Beta::Octicon.new(:check)) %>
<%= render(Primer::Beta::Octicon.new(icon: :check)) %>

Medium

<%= render(Primer::Beta::Octicon.new(:people, size: :medium)) %>

Helper

<%= primer_octicon(:check) %>