Price Object

9.0.14

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

className

stringOptional CSS class name.

customAttribute

{ attribute: string; value: string | number }Custom attribute for testing. Subcomponents will have this attribute suffixed with "-[ComponentName]".

disabled

booleanIf true, the component is disabled.

fontVariant

"h2" | "h3" | "h4" | "h1" | "subtitle1" | "body1" | "h1Small"Typography variant styling applied to the price text.

hidePricePrefix

booleanWhen true, hides the prefix that appears before the price.

leftAligned

booleanEnsures price alignment to the left on small or zoomed-in viewports.

locale

InputLanguageLocale 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

SxPropsCustom styles applied to the component.

useFontVariantOnBothPriceAndPoints

booleanWhen true, applies the fontVariant to both price and points. Defaults to false.

wrapPrefixAndPrice

booleanWraps the price prefix and the price into separate lines, useful for long prefixes.

Installation

npm install @sj-ab/component-library.ui.price-object

Länkar

Change log

Statistik

  • Importer av Price Object

    28
  • Repos med Price Object

    35%
  • Senaste installerade version av Price Object

    9.0.13
  • Äldsta installerade version av Price Object

    9.0.12