interface CommonProps {
    className?: string;
    currency?: "SEK" | "EUR";
    customAttribute?: {
        attribute: string;
        value: string | number;
    };
    disabled?: boolean;
    fontVariant?:
        | "h2"
        | "h3"
        | "h4"
        | "h1"
        | "subtitle1"
        | "body1"
        | "h1Small";
    hidePricePrefix?: boolean;
    leftAligned?: boolean;
    locale?: InputLanguage;
    pricePrefix?: "from" | "add" | "addFrom";
    priceType?: "standard" | "textSecondary" | "lowPrice";
    sx?: SxProps<Theme>;
    useFontVariantOnBothPriceAndPoints?: boolean;
    wrapPrefixAndPrice?: boolean;
}

Properties

className?: string

Optional CSS class name.

currency?: "SEK" | "EUR"

Currency of the price. Default is SEK.

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<Theme>

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.