ProductTitle
ProductTitle reads a product name through active connector traits and accepts Text props and className overrides for its display.
Import
import { ProductTitle } from '@tallyui/components';Usage
<ProductTitle doc={productDocument} className="text-lg font-bold" />The same component reads doc.name for WooCommerce and doc.title for Medusa — the trait layer handles the mapping.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
doc | any | required | RxDB product document |
className | string | — | Override default styles |
Plus all TextProps from the UI Text component (includes variant and asChild).
Default classes: font-semibold (inherits text-base text-foreground from the UI Text primitive)
Trait mapping
| Connector | Field read |
|---|---|
| WooCommerce | doc.name |
| Medusa | doc.title |
| Shopify | doc.title |
| Vendure | doc.name |
Live demo
Components
Browse Tally UI's point-of-sale components for products, grids, carts, customers, checkout, selling, and registers, with trait-based data access.
ProductPrice
ProductPrice displays regular and sale prices from connector traits, with an optional lowest variant price and configurable from-price format.