Badge

Displays a badge or a component that looks like a badge.

PrimarySecondaryDestructiveOutline

Invalid

PrimarySecondaryDestructiveOutline

With Icon

Primary Secondary Destructive Outline

Link

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::badge::*;

#[component]
pub fn BadgeAnatomy() -> impl IntoView {
    view! { <Badge /> }
}

API Reference

Badge

Contains arbitrary badge content.

Custom Attributes
NameTypeDefaultDescription
variantString"primary"

Specifies the style of badge to display.

Implements global attributes.