Skip to content
EspañolEnglish
All components (283)

Installment notice

Commerce · InstallmentMessage

What it is and when to use it

The one-line notice on a product page: “or 4 × €24.00 interest-free”. It is what is seen before opening the full calculator.

When to use it

  • Below a product's price or the cart total, to say it can be paid in instalments.
  • Without months it advertises the longest plan, which has the lowest instalment; with months, that plan.
  • It says whether interest applies (“a month” or “interest-free”): a low instalment that does not say so is the usual trick.
  • minAmount and maxAmount are the lender's limits: outside them it does not show, and neither without plans.

When not to

  • Choosing a plan and seeing the total, the cost and the APR: InstallmentCalculator.

Keyboard: it has no controls; it is a paragraph.

Accessibility: it is a <p> with the full text, with no icons or symbols saying something the text does not. The “×” is read as “times”.

Fine-tuning: the house typeface, tabular numbers and the secondary text colour. It is positioned with amset-installments-line.

What it looks like

Aurelia ring

240,00 €

or 6 × €40.00 interest-free

// Debajo del precio de la ficha. Anuncia el plan más largo, el de la cuota más baja;
// por debajo de minAmount o por encima de maxAmount no pinta nada.
<InstallmentMessage
  amount={importe}
  plans={[{ months: 3, tin: 0 }, { months: 6, tin: 0 }]}
  minAmount={50}
  maxAmount={3000}
/>

// Con intereses y un plan concreto dice «al mes».
<InstallmentMessage amount={1200} plans={[{ months: 12, tin: 9.5 }]} months={12} />

Props

Import it with import { InstallmentMessage } from '@amset/ui'. Required props are marked.

PropTypeWhat it does
amountrequirednumberThe product's or the cart's amount.
plansrequiredreadonly InstallmentPlan[]—
classNamestringMerged with the library classes; it does not replace them.
currencystring—
maxAmountnumberAbove this there is no financing and the line does not show.
minAmountnumberBelow this there is no financing and the line does not show.
monthsnumberThe months of the plan that is advertised. Without this, the longest one, which has the lowest instalment.

It also accepts the attributes of the element it renders: className, style, data-*, aria-* and its events.

In the test bench

Every state and variant, to try one at a time, on its page at storybook.amsetui.com: