Component packs › Layers › Layer Cake Builder

Layer Cake Builder

Tiers rebuild as you change them, fillings swap between the sponges and berries scatter on top.

Layer Cake Builder is a configurator from Layers, a component pack with 6 components: Product builders where what you choose stacks up for real. Price: $5 for the whole pack.

Built with: tier rebuild, filling swap, scattered toppings.

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.

Layer Cake Builder props

PropTypeDefaultDescription
darkboolean
autoplayboolean
currencystring
photosRecord<string
onAdd(spec: { tiers: number; filling: string; top: string[] }, price: number) => void

Methods on the ref

Use it in React

import CakeBuilder from './CakeBuilder';

<CakeBuilder />

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

More in Layers

Good for: Product configurators.