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
monthsit advertises the longest plan, which has the lowest instalment; withmonths, that plan. - It says whether interest applies (“a month” or “interest-free”): a low instalment that does not say so is the usual trick.
minAmountandmaxAmountare 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
// 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.
| Prop | Type | What it does |
|---|---|---|
amountrequired | number | The product's or the cart's amount. |
plansrequired | readonly InstallmentPlan[] | — |
className | string | Merged with the library classes; it does not replace them. |
currency | string | — |
maxAmount | number | Above this there is no financing and the line does not show. |
minAmount | number | Below this there is no financing and the line does not show. |
months | number | The 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:
