#Badge
Similar to a Button, the Badge component uses the same syntax as a hyperlink, but is prefixed with a !badge
identifier.
With the Badge component, the destination is optional and can be omitted.
Badge
#Variant
#Corners
#Size
#Target
Sets the target
attribute of the badge and specifies which window or tab to open the link into.
If no target
is configured, the link will open in the current tab.
The target
can be set to any value, although blank
is common and will open the link in a new tab. Retype will automatically transform the value blank
into _blank
which is the actual value required by the browser to indicate that a hyperlink should be opened in a new tab.
There are several other values that may be prefixed with an _
character, including self
, parent
, and top
. The following table demonstrates some common scenarios and naming convention used by Retype to normalize the target
values.
See also the links.target
configuration.
#Icon and Emoji
#Octicons
Octicons can be used as an icon by settiing the icon
property with the name of the Octicon.
UserSend
#Emoji
Emoji :shortcodes:
can be used for the icon. Please see Mojee for a full list of supported Emoji shortcodes.
❤️LikeRocket🚀
#Image file
Any image file can be used as the icon
.
#SVG image
The icon
can also be set with an inline <svg>
element.