API reference
components/price-tag
Import
Section titled “Import”import * as api from "@fungi.computer/caps/molecules/price-tag";Exports
Section titled “Exports”| 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”type PriceTagProps = Readonly<{ price: | { kind: "free"; } | { kind: "one-time"; label: string; };}>;The caller-provided price shown on a store entry.
PriceTag()function
Section titled “PriceTag()”function PriceTag(__namedParameters): Element;A compact, theme-backed price label for store entries.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
PriceTagProps |
Returns
Section titled “Returns”Element