Price Object
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Namn | Typ | Beskrivning |
---|---|---|
className | string | Optional CSS class name. |
customAttribute | { attribute: string; value: string |
number } | Custom attribute for testing. Subcomponents will have this attribute suffixed with "-[ComponentName]". |
disabled | boolean | If true, the component is disabled. |
fontVariant | "h2" |
"h3" |
"h4" |
"h1" |
"subtitle1" |
"body1" |
"h1Small" | Typography variant styling applied to the price text. |
hidePricePrefix | boolean | When true, hides the prefix that appears before the price. |
leftAligned | boolean | Ensures price alignment to the left on small or zoomed-in viewports. |
locale | InputLanguage | Locale setting for formatting the price and points. |
pricePrefix | "from" |
"add" |
"addFrom" | Text prefix displayed before the price. |
priceType | "standard" |
"textSecondary" |
"lowPrice" | Defines the color for the price. |
sx | SxProps | Custom styles applied to the component. |
useFontVariantOnBothPriceAndPoints | boolean | When true, applies the fontVariant to both price and points. Defaults to false. |
wrapPrefixAndPrice | boolean | Wraps the price prefix and the price into separate lines, useful for long prefixes. |
npm install @sj-ab/component-library.ui.price-object
Importer av Price Object
28Repos med Price Object
35%Senaste installerade version av Price Object
9.0.13Äldsta installerade version av Price Object
9.0.12