App UI kits › Margin › Checkout

Checkout

It works out whether buying or subscribing is cheaper for you, and states the refund rule in one sentence.

Checkout is a screen from Margin, an app ui kit with 12 screens: An online course app whose transcript follows the lesson line by line and turns any line into a note pinned to that second. Price: $5 for the whole pack.

Built with: honest plan maths, student code, pay morph.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Checkout props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosMgPhotos
onPay(p: { plan: string; total: number }) => void

Methods on the ref

Use it in React

import MarginCheckout from './MarginCheckout';

<MarginCheckout />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Margin

Good for: E-learning app UI, UK (pounds).