Badge

Badges show how important you are. Gold ones are the best.
Includes a Ruby component and corresponding Rails helper
Ruby

Example

Default
<%= nk_badge("Default") %>

Install

Set up Nitro Kit then

bin/rails generate nitro_kit:add badge

Variants

nk_outline_badge

Outline

Read more about variants

Sizes

Small :sm
Medium :md

Usage

nk_badge(text = nil, variant: :default, size: :md, **attrs)
PropertyDefaultDescription
textnilPlain text content
variant:defaultOne of :default / :outline
size:mdOne of :sm / :md
**attrsHTML attributes for <span> element