Component packs › Layers › Burger Builder

Burger Builder

Real ingredient textures in their own shapes drop onto the stack and squash; removed layers fly off as the rest settle.

Burger 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: stack physics, real textures, rolling calories.

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.

Burger Builder props

PropTypeDefaultDescription
darkboolean
autoplayboolean
currencystring
photosRecord<string
basenumber8.5Base price before extras. Default 8.5.
onAdd(parts: string[], price: number, kcal: number) => void

Methods on the ref

Use it in React

import BurgerBuilder from './BurgerBuilder';

<BurgerBuilder />

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

More in Layers

Good for: Product configurators.