Magoo Component UI logo Magoo Component UI
← Catalog

Mint Widget

mint-widget organism experimental

A minting panel with a quantity stepper, live total, supply progress, and a mint button.

Also in: CardsForms

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default

Mint Cosmic Drifters

0.05 per item

3120 / 5000 minted

Quantity
NoSupply

Mint a Genesis Pass

0.2 per item

3120 / 5000 minted

Quantity

Props

NameTypeReq
title string ✓
price string ✓
max string
supply_minted string
supply_total string
quantity string

Related components

How to use

behavior.js reads the per-item price from .mint-widget__total[data-unit-price] and the optional cap from .mint-widget__qty[data-max]. The minus/plus buttons and manual input edits clamp the quantity to 1..max and re-render the running total in .mint-widget__total. Clicking Mint dispatches a bubbling "mint:submit" CustomEvent whose detail is { quantity }; listen on the component root or an ancestor and trigger your mint transaction with that quantity. Because the total is recomputed from a numeric price, keep price a bare number (e.g. "0.05"). The init returns a cleanup function that removes every listener.

Use cases

cardform WCAG AA SEO 45 dir: both ai-generated