Skip to content

GitHubIcon

Experimental

A GitHubIcon is a square inline element.

Examples

The default size is 32 pixels:

Use the size prop to set a custom size:

The size prop can also take an array to make the icon's size responsive:

Use the title prop to set a title that appears when hovering over the icon:

Follow us on GitHub

Since GitHubIcon is an inline element, it uses the text color of its parent element:

System props

GitHubIcon supports space props and color props from Styled System.

Component props

NameTypeResponsiveDefaultDescription
sizeNumberyes32Size in pixels of the square within which the icon is rendered.
titleStringnoOptional hover title.

Variants

This component does not support variants.

Edit this page on GitHub
1 contributormaiertech
Last edited by maiertech on July 8, 2020