API reference
components/count-badge
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/count-badge";Exports
Section titled “Exports”| 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”type CountBadgeProps = object & HTMLAttributes<HTMLSpanElement>;Props accepted by CountBadge.
Type Declaration
Section titled “Type Declaration”| Name | Type | Description |
|---|---|---|
count |
ReactNode |
- |
tone? |
"neutral" | "warning" |
Semantic count emphasis; warnings call attention to items needing action. |
label? |
ReactNode |
- |
CountBadgeconstant
Section titled “CountBadge”const CountBadge: ForwardRefExoticComponent< object & HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;A badge displaying a caller-provided count and label.