Skip to content
API reference

components/price-tag

Import
import * as api from "@fungi.computer/caps/molecules/price-tag";
Kind Export Description
type alias PriceTagProps The caller-provided price shown on a store entry.
function PriceTag() A compact, theme-backed price label for store entries.

PriceTagPropstype alias

Section titled “PriceTagProps”
Signature
type PriceTagProps = Readonly<{
price:
| {
kind: "free";
}
| {
kind: "one-time";
label: string;
};
}>;

The caller-provided price shown on a store entry.

Signature
function PriceTag(__namedParameters): Element;

A compact, theme-backed price label for store entries.

Parameter Type
__namedParameters PriceTagProps

Element