Storefront component craft
Polished UI mechanics for filter bars, scroll preservation, card grids, media and contact rows.
Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples. Interactive API requests are disabled here.
When building a custom booking storefront in React, Next.js or Tailwind, adopt interaction mechanics from polished ecommerce sites while keeping the visual register of travel and experience bookings.
Mechanics from commerce, register from travel
Apparel storefronts strip cards down to a 3:4 photo, a name and a price. Experience bookings are different: a parent booking a week-long camp or a traveller booking an expedition wants warm real-world photography, a readable description, decision facts, a clear headline price and trust signals beside the booking column.
Borrow the mechanics below, and keep the warmer experience register where the two conflict.
Filter bar and mobile filter sheet
A filter bar feels broken when options wrap awkwardly inside a tall box or scroll inside a cramped panel.
- Desktop bar: one quiet horizontal row of facet triggers (text or outline pills) with a small tabular count badge when active (
ml-1.5 px-1.5 py-0.5 text-xs tabular-nums) and a subtle chevron. - Content-hugging popovers: anchor one popover per trigger (
bottom start, 8px gap). Size the panel to its longest label as a clean vertical list (whitespace-nowrap) with no unnecessary inner scroll; close on Escape, outside click or choosing a single-select option. - Separate active-filter strip: display selected values in a dedicated row of removable chips (each with a clear
sr-onlyremove label) plus a "Clear all" action so the trigger bar never reflows. - Mobile bottom or side sheet: behind one "Filters (N)" button, open a sheet with one single scroll area for all facet sections and a sticky footer CTA showing the live count ("Show 14 activities").
- Empty filter state: if an operator has no active filter groups on a listing, hide the filter trigger completely rather than opening an empty drawer.
- Available facet options: render the latest options after each selection. If
optionsTruncatedis true, present the shown options without implying they are the full set. See facet counts.
Scroll discipline on filter and option changes
Every choice that refines the current page (clicking a filter chip, picking a month, switching a variation or stepping through a gallery) should update the URL without jumping the scroll position:
// Next.js App Router example
router.replace(`${pathname}?${nextParams.toString()}`, { scroll: false });- Use
scroll={false}on<Link>orrouter.replacefor filters, period controls and option chips, and omit#hashfragments unless scrolling to a section is the link's explicit job. - Clear the list cursor when a filter changes so the updated results start on the first page.
- Keep normal forward page navigation (clicking an activity card to open its detail page) scrolling cleanly to the top.
Full-bleed peeking card rows
A horizontal row of collection or hero tiles looks cut off when it stops inside the page container gutter.
- Place the horizontal scroller outside the padded container (
overflow-x-auto snap-x snap-mandatory), and apply the page gutter as padding on the inner flex track (px-4 sm:px-6 lg:px-8). - Align the first tile flush with the section heading above it, keep a trailing gutter after the last tile, and choose tile widths so a partial tile peeks past the right viewport edge at every breakpoint to signal horizontal scrolling naturally.
- Place tile labels on a bottom gradient scrim over the image (
bg-gradient-to-t from-black/75 via-black/15 to-transparent) with motion guarded bymotion-reduce:transition-none.
Activity cards that align cleanly
- Use a full-height flex column (
flex h-full flex-col) and push the price + next-date footer to the bottom (mt-auto) so prices line up horizontally across every card in a grid row. - Keep one primary clickable destination per card (using a stretched link overlay on the title anchor) instead of competing mini-buttons.
- Do not clamp descriptions with a hover tooltip: native
titletooltips fail on touchscreens and screen readers. Either render concise descriptions in full, or provide an accessible inline "Read more" disclosure button. - Show 12 to 24 cards per page with "Show more" / cursor pagination rather than tiny 4-item pages.
Media without clutter
- Never put a "Video" badge over playing media: a playing video speaks for itself; reserve badges strictly for commercial facts that change a decision ("Sold out", "Opens 1 March").
- Ambient video: use
autoPlay muted loop playsInlinewith aposterimage,aria-hiddenwhen decorative, and fall back to the poster image underprefers-reduced-motion: reduce. - Responsive
srcset: pass only the entries returned by Buchung inmedia.srcSetand never alter signed URLs.
Inline contact and copy actions
- Render phone numbers and emails as direct
tel:andmailto:links with a leading icon rather than boxing words like "Email" or "Copy" on a separate line. - If you add a copy-to-clipboard button, sit a compact inline ghost icon button right beside the link with an explicit
aria-label(for example"Copy email address"), swap the Copy icon to a Check icon for 2 seconds on click, and announce"Copied"in a politearia-liveregion. - Avoid hover-only affordances anywhere in the booking path.