shadcn.io is not affiliated with official shadcn/ui
Layaway Storefront Block for Radix UI
A layaway plan for a sideboard: pick weekly, fortnightly or monthly, pay 20 percent down, see the plan as a segmented bar and dated cells, the collection date, and the terms in an accordion.
Installation
Overview
Hold a piece while it is paid off, with this layaway block for React with Radix UI. A header says what Ashby Row, a furniture shop, offers. The framed panel names the sideboard and its price, then a Segment Group chooses weekly, fortnightly or monthly. Three figures follow: the 20 percent down payment today, the equal payments after it and the day the piece is ready for collection. The plan is drawn as a segmented bar and listed as dated cells, with an Accordion of terms under it. The foot holds the block's one Shine Button, Activate plan. It's built from Segment Group, Accordion, Shine Button and Guides. For furniture, appliances and any purchase paid before it is taken home.
FAQ
How is the schedule worked out?
The down payment is 20 percent of the price. The rest is split into equal payments (12 weekly, 6 fortnightly or 3 monthly), and the last one takes the odd cents, so the plan always adds up to the price; the bar shows the total it sums to. Weekly and fortnightly dates add days to a fixed day in UTC, and monthly dates add calendar months.
Where does the collection date come from?
It is the date of the last payment. Monthly is later than the other two, because three months are longer than twelve weeks. Change RHYTHMS to give your shop a different length of plan.
Are the terms real?
They are sample wording for the demo: a week of grace, a 14-day hold, a 10 percent holding fee on cancelling. Replace them with your own terms in TERMS, and have them checked where you sell.
What stays in the page, and how do I connect it?
Everything. Activate plan only notes the choice in the status line: nothing is charged, reserved or sent. To make it real, charge the down payment and create the schedule at your payment provider in the click handler, then show its answer in the same line.