Skip Navigation
Type MethodMethod

markup(variant:text:)

Returns the markup of a badge.

static func markup(
    variant: String,
    text: String
) -> String

Parameters

variant

The variant, such as deprecated, or the type of a tag.

text

The label of the badge.

Return Value

A span.badge element with the class badge-<variant>.