Component packs › Layers › Sandwich Builder
Fillings stack in the order you pick under a top slice that always lands last; toasting browns the bread.
Sandwich 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: ordered stack, toast state, bread swap.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
currency | string | ||
photos | Record<string | ||
onAdd | (parts: string[], price: number, kcal: number) => void |
destroy(): voidimport SandwichBuilder from './SandwichBuilder';
<SandwichBuilder />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Product configurators.