Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA set of glass form controls shown as a product configurator over a full-bleed photo: a number stepper with rolling digits and press-and-hold acceleration, an add-to-bag button that morphs into a quantity capsule whose minus turns into a trash icon at one, a rating control with drawn rounded stars that pop in sequence and can be dragged across, a squircle color swatch picker with a glass ring that stretches as it slides, and a token input whose chips spring in and shrink away. Every control is controlled or uncontrolled with onChange, fully keyboard operable with proper roles, and calm under reduced motion.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { GlassStepperInputs } from "@/components/hyperblur-pro/glass-stepper-inputs"
<GlassStepperInputs />
<NumberStepper defaultValue={1} min={1} max={10} onChange={setSeats} />
<QuantityCapsule value={qty} onChange={setQty} />
<RatingControl value={stars} onChange={setStars} />
<TokenInput defaultValue={["design"]} suggestions={["motion", "glass"]} />| Prop | Type | Default | Description |
|---|---|---|---|
| image | string | "https://images.unsplash.com/photo-1505740420928-5e560c06d30e" | GlassStepperInputs: product photo used as the full-bleed scene. |
| productName / basePrice / currency | string / number / string | "Aura One" / 349 / "USD" | GlassStepperInputs: product heading and price math. |
| editions | { id, name, color, hue }[] | Sun, Sage, Ocean, Lilac, Coral | GlassStepperInputs: swatches; hue rotates the scene photo for each one. |
| onAddToBag | (state) => void | undefined | GlassStepperInputs: called when the quantity changes with the whole configuration. |
| accent | string | "#111111" | Fill of the add button, tokens and focus rings. |
| refraction | number | 1 | Lens strength of every glass surface. |
| NumberStepper | value, defaultValue, onChange, min, max, step, format, label | 0..99 | Rolling digit stepper with hold to repeat. |
| QuantityCapsule | value, defaultValue, onChange, max, addLabel | 0 | Add button that morphs into a quantity capsule. |
| RatingControl | value, defaultValue, onChange, count, color, size | 0 of 5 | Star rating with drag, hover preview and arrow keys. |
| SwatchPicker / TokenInput | swatches, value, onChange / value, onChange, suggestions, max | first swatch / [] | Radio group of squircle swatches, and chips input with suggestions. |
Source code is included in Pro and above