Skip to content
API reference

components/count-badge

Import
import * as api from "@fungi.computer/caps/components/count-badge";
Kind Export Description
type alias CountBadgeProps Props accepted by CountBadge.
constant CountBadge A badge displaying a caller-provided count and label.

CountBadgePropstype alias

Section titled “CountBadgeProps”
Signature
type CountBadgeProps = object & HTMLAttributes<HTMLSpanElement>;

Props accepted by CountBadge.

Name Type Description
count ReactNode -
tone? "neutral" | "warning" Semantic count emphasis; warnings call attention to items needing action.
label? ReactNode -

CountBadgeconstant

Section titled “CountBadge”
Signature
const CountBadge: ForwardRefExoticComponent<
object & HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>
>;

A badge displaying a caller-provided count and label.