labsUI
Accent color

Electronics store

A store in euros for people who compare specs: prices shown against their 30-day low, a filtered category page, a compare drawer, a delivery promise and a step-by-step configure page.

Open demo
A reference build: the checked run's code, polished by hand. An agent's result will differ.

Prompt

Using labsUI, build an electronics store selling in EUR, all text in English, for people who compare specs before they buy. A wide search bar with a category picker leads the header. Every price is honest: each product shows a small price history chart and its lowest price of the last 30 days, and a discount is only shown against that. The category page has a filter column (brand checkboxes with counts, a price range slider, in stock only) and products as rows with three key specs, rating, price, monthly instalments and add to cart; a compare checkbox collects up to four products into a side-by-side table that can show only the differences. Delivery is a promise with a time: "order in the next 2 h 14 min, arrives tomorrow". One laptop has a configure page that asks one question per step (size, chip, memory, storage) with the price and delivery date updating in a sticky summary. Light first, tight spacing, real CC0 photos downloaded into `public/`, no brands or logos, sample data, no real payments. Pick one accent preset that fits, not the default blue. Avoid a small label above every heading, a centered hero with two equal buttons, three equal feature cards and round numbers like 10,000+.

Checked on labsUI 0.2.3 with Claude Sonnet, November 9, 2026: a fresh Next.js 16 app, the agent using only the labsUI MCP server. Its build passed and axe found no violations from labsUI.

The raw run

The checked run's own result, before any polish: what the prompt alone got.

The electronics store the checked run built
What that run built, unedited. Your agent's result will differ in the details.

Components it uses

The agent adds these itself. To start by hand, after npx @kznlabs/labsui init:

npx @kznlabs/labsui add alert aspect-ratio badge breadcrumb button cart chart checkbox comparison-table confirm dialog drawer empty field input input-group label native-select navigation-menu number-input radio-group rating search-input select site-footer slider stepper switch table toast

What the result needs

Compare in a drawer

ComparisonTable groups rows, pins the header and feature names, swaps to two pickers on a phone and has the differences switch built in. Keep the picked products in the page's state, show a tray while there are any, and open the table in a Drawer; featured tints one column.

A discount is against the 30-day low

Compute the lowest price of the 30 days before today from the same history rows the Chart draws, show a discount only when today's price is under it, and strike through that low, not a list price. A product whose price was raised and cut back then correctly shows none.

One question per step

Stepper keeps every step mounted and checks the step's native constraints on Continue, so the configure page is the steps plus a sticky summary that reads the same state: price, instalments and delivery date.

A delivery promise has a clock

Derive “order in the next 2 h 14 min” from a cut-off time and the visitor's clock after hydration, and skip days nothing ships; before the first client render show the cut-off, so the server HTML and the first render match.