Skip to content
On this page

OcticonSymbols

Alpha
On this page

OcticonSymbols renders a symbol dictionary using a list of Octicon.

Arguments

NameTypeDefaultDescription
iconsArray<Hash>[]List of icons to render, in the format { symbol: :icon_name, size: :small }

Examples

Symbol dictionary

<%= render(Primer::OcticonComponent.new(icon: :check, use_symbol: true, color: :icon_success)) %>
<%= render(Primer::OcticonComponent.new(icon: :check, use_symbol: true, color: :text_danger)) %>
<%= render(Primer::OcticonComponent.new(icon: :check, use_symbol: true, size: :medium)) %>
<%= render(Primer::OcticonSymbolsComponent.new(icons: [{ symbol: :check }, { symbol: :check, size: :medium }])) %>