# price (/themes/sdk/reference/price)

```ts
import { … } from '@poltura/theme-sdk/price';
```

## [Hooks](/themes/sdk/reference/price/hooks) [#hooks]

| Name | What it is |
| --- | --- |
| [`usePrice`](/themes/sdk/reference/price/hooks#useprice) | The amounts behind a price, for code that must compute with them. |
| [`usePriceAccess`](/themes/sdk/reference/price/hooks#usepriceaccess) | Whether the visitor may see prices, on which tax basis, and what unlocks them when hidden. |

## [Parts](/themes/sdk/reference/price/parts) [#parts]

| Name | What it is |
| --- | --- |
| [`Price`](/themes/sdk/reference/price/parts#price) | The price a shopper pays, on the visitor's tax basis, filled in per visitor on pages with live prices. |
| [`PriceRange`](/themes/sdk/reference/price/parts#pricerange) | The lowest to highest price across a product's variants, or its single price when they agree. |
| [`CompareAtPrice`](/themes/sdk/reference/price/parts#compareatprice) | The struck-through price before the markdown; nothing at full price. |
| [`DiscountBadge`](/themes/sdk/reference/price/parts#discountbadge) | The markdown as a percentage label such as `-20%`; nothing at full price. |
| [`UnitPrice`](/themes/sdk/reference/price/parts#unitprice) | The price per base measure, such as "12 900 Ft / kg", the EU unit price rule asks for. |
| [`TaxNote`](/themes/sdk/reference/price/parts#taxnote) | "+ VAT" or "net" beside prices for a visitor who sees net prices; nothing on gross. |
| [`PriceGate`](/themes/sdk/reference/price/parts#pricegate) | The sign-in or apply link shown instead of prices to visitors the store hides them from. |

## [Types](/themes/sdk/reference/price/types) [#types]

| Name | What it is |
| --- | --- |
| [`MeasureUnit`](/themes/sdk/reference/price/types#measureunit) | A unit a product's contents or a unit price is measured in. |
| [`Money`](/themes/sdk/reference/price/types#money) | An amount of money in major units (`12.99`, not `1299`). |
| [`PriceAccess`](/themes/sdk/reference/price/types#priceaccess) | Whether and how the current visitor may see prices. |
| [`PriceBounds`](/themes/sdk/reference/price/types#pricebounds) | The lowest and highest price of a product's variants. |
| [`PriceDisplayMode`](/themes/sdk/reference/price/types#pricedisplaymode) | Which basis prices are shown on: with tax, without tax, or without tax plus a tax note. |
| [`PriceGateReason`](/themes/sdk/reference/price/types#pricegatereason) | Why prices are hidden from the visitor: they must sign in, or apply for a business account. |
| [`PriceRef`](/themes/sdk/reference/price/types#priceref) | The opaque key the storefront fills a live price into on pages with live prices. |
| [`PriceView`](/themes/sdk/reference/price/types#priceview) | A price as a view model carries it; render it with the price parts. |
| [`ResolvedPrice`](/themes/sdk/reference/price/types#resolvedprice) | A price worked out for the visitor's display mode, ready to show. |
| [`UnitMeasure`](/themes/sdk/reference/price/types#unitmeasure) | A quantity with its unit, such as 500 g. |
| [`UnitPriceInfo`](/themes/sdk/reference/price/types#unitpriceinfo) | The price per base quantity the EU unit-pricing rules (98/6/EC) require, such as 4.20 per kg. |
| [`UnitPricing`](/themes/sdk/reference/price/types#unitpricing) | What a variant contains and the quantity its unit price is quoted per. |
| [`PriceProps`](/themes/sdk/reference/price/types#priceprops) | Props of [`Price`](/themes/sdk/reference/price/parts#price), [`CompareAtPrice`](/themes/sdk/reference/price/parts#compareatprice), [`DiscountBadge`](/themes/sdk/reference/price/parts#discountbadge) and [`UnitPrice`](/themes/sdk/reference/price/parts#unitprice). |
| [`PriceRangeProps`](/themes/sdk/reference/price/types#pricerangeprops) | Props of [`PriceRange`](/themes/sdk/reference/price/parts#pricerange). |
| [`PriceNoteProps`](/themes/sdk/reference/price/types#pricenoteprops) | Props of [`TaxNote`](/themes/sdk/reference/price/parts#taxnote) and [`PriceGate`](/themes/sdk/reference/price/parts#pricegate). |

<AnchorRedirect to={{"hooks":"/themes/sdk/reference/price/hooks","useprice":"/themes/sdk/reference/price/hooks","usepriceaccess":"/themes/sdk/reference/price/hooks","parts":"/themes/sdk/reference/price/parts","price":"/themes/sdk/reference/price/parts","pricerange":"/themes/sdk/reference/price/parts","compareatprice":"/themes/sdk/reference/price/parts","discountbadge":"/themes/sdk/reference/price/parts","unitprice":"/themes/sdk/reference/price/parts","taxnote":"/themes/sdk/reference/price/parts","pricegate":"/themes/sdk/reference/price/parts","types":"/themes/sdk/reference/price/types","measureunit":"/themes/sdk/reference/price/types","money":"/themes/sdk/reference/price/types","priceaccess":"/themes/sdk/reference/price/types","pricebounds":"/themes/sdk/reference/price/types","pricedisplaymode":"/themes/sdk/reference/price/types","pricegatereason":"/themes/sdk/reference/price/types","priceref":"/themes/sdk/reference/price/types","priceview":"/themes/sdk/reference/price/types","resolvedprice":"/themes/sdk/reference/price/types","unitmeasure":"/themes/sdk/reference/price/types","unitpriceinfo":"/themes/sdk/reference/price/types","unitpricing":"/themes/sdk/reference/price/types","priceprops":"/themes/sdk/reference/price/types","pricerangeprops":"/themes/sdk/reference/price/types","pricenoteprops":"/themes/sdk/reference/price/types"}} />
