Skip to content

Octicon

Renders an Octicon with System arguments.

Examples

Default

<%= render(Primer::OcticonComponent.new(icon: "check")) %>

Medium

<%= render(Primer::OcticonComponent.new(icon: "people", size: :medium)) %>

Large

<%= render(Primer::OcticonComponent.new(icon: "x", size: :large)) %>

Arguments

NameTypeDefaultDescription
iconStringN/AName of Octicon to use.
sizeSymbol:smallOne of :small (16), :medium (32), or :large (64).
system_argumentsHashN/ASystem arguments