Skip to content

Furniture App Product Detail with AR Preview Button

Furniture app product detail screen with a photo carousel, color swatches, a dimensions table, a View in your room AR preview sheet and a sticky add to cart bar.

Also known as: furniture app ui, product page mobile app, ar view in room button, furniture store product detail, mobile product details screen

Furniture App Product Detail with AR Preview Button live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A furniture app product detail screen built with Bootstrap 6: a mobile product page UI with a photo carousel, color swatches, a dimensions table, a "View in your room" AR preview button and a sticky add to cart bar. It is an HTML mobile template for mobile sites and PWAs, and it can be packaged as a native app with Capacitor.

How it works

The root .fpd-app is a 430 px app column with a compact app bar (back, wishlist, cart badge .fpd-cart-count).

  • Photos: a Bootstrap 6 Carousel (#fpd-photos, carousel-overlay) with prev/next buttons and indicators. Photos come from Unsplash; replace them with your own.
  • Colors: .fpd-swatch labels wrap radio inputs (name="fpd-color"). Each input carries data-price, data-tone and data-stock; setColor() updates the legend, price, "4 payments" split, stock note and the chair color in the AR scene.
  • Dimensions: a btn-check radio group switches the .fpd-table between centimeters and inches. Cells keep their source values in data-cm and data-kg.
  • Delivery: the .fpd-eta window is computed from today, so the dates never go stale.
  • AR preview: .fpd-ar-btn opens a Bootstrap 6 Drawer (#fpd-ar, drawer-bottom) used as a bottom sheet. "Start AR preview" runs a simulated floor scan with a .progress bar, then places the chair in the SVG room and lets the user try colors. Escape, the backdrop and "Done" close it.
  • Buy bar: .fpd-buy is sticky with a quantity stepper (1 to MAX_QTY) and an add to cart button that updates the cart badge after a short simulated request.

Customization

  • --fpd-walnut on .fpd-app (with --bs-primary-bg): the accent for buttons, the selected swatch and the AR icon.
  • --fpd-bg and --fpd-radius: the warm white surface and the 16 px corner radius used by cards and buttons.
  • --fpd-photo-h: the carousel photo height (380 px by default).
  • data-price and data-stock on each input[name="fpd-color"]: per-color price and availability text.
  • .fpd-dot-slate, .fpd-dot-sage, .fpd-dot-oat, .fpd-dot-cognac plus the TONES object in script.js: swatch colors and the matching chair color in the AR sheet.
  • MAX_QTY in script.js: the highest quantity the stepper allows.

Use cases

  • Furniture and home decor apps: shoppers check size and color before ordering a chair or sofa.
  • Interior design marketplaces: a product page that links into a real AR viewer.
  • Retail PWAs: a reusable mobile product detail layout with a sticky purchase bar.

Accessibility

Swatches are real radio inputs in a fieldset, the wishlist button uses aria-pressed, and price, cart and scan updates are announced in a polite live region. The sheet is a native <dialog> that focuses its first action. Touch targets are at least 44 px; reduced motion turns transitions off.

Bootstrap 6 notes

Built on 6.0.0-alpha.1 (alpha APIs can still change). The Offcanvas from Bootstrap 5 is now a <dialog class="drawer drawer-bottom">, buttons use btn-solid theme-primary, toggle buttons put the input inside label.btn-check, and the accordion is native <details>. To launch a real AR viewer, replace the simulated scan in startScan().

Furniture App Product Detail with AR Preview Button at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons, fonts.googleapis.com
Layout
Mobile-first app screen, centred on wider screens
Category
Mobile Shop & Checkout
License
Free for personal and commercial use

Questions about this template

Can I use the Furniture App Product Detail with AR Preview Button code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 6 and Bootstrap Icons and fonts.googleapis.com from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Furniture App Product Detail with AR Preview Button – free Bootstrap 6 mobile shop & checkout template
Furniture App Product Detail with AR Preview Button · free Bootstrap 6 mobile shop & checkout template

More Mobile Shop & Checkout

Mobile Shopping Bag Screen – free Pure CSS mobile shop & checkout template

Mobile Shopping Bag Screen

Mobile shopping bag screen with quantity steppers, remove and undo, promo code validation, free delivery progress, order summary and a sticky checkout bar.

Sneaker Store Home with Filters Sheet – free Tailwind CSS mobile shop & checkout template

Sneaker Store Home with Filters Sheet

Sneaker store app home screen with brand chips, search, product cards and a filter bottom sheet with price range, sizes and sort that applies to the product grid.

Coffee Shop Order Customization Screen – free Bootstrap 5 mobile shop & checkout template

Coffee Shop Order Customization Screen

Coffee shop app order screen where customers customize a drink: size cards, milk and syrup options, an extra shot stepper and a live price on the add to order button.

Fashion Store Product Detail Screen – free Tailwind CSS mobile shop & checkout template

Fashion Store Product Detail Screen

Fashion store product detail screen with swipeable photos, colour swatches, size chips with a size guide bottom sheet, details accordion and a sticky Add to bag bar.

Grocery App Product List with Cart Badge – free Bootstrap 5 mobile shop & checkout template

Grocery App Product List with Cart Badge

Grocery app product list screen with filter chips, a two-column product grid with add-to-cart steppers and a floating cart button showing the item count and total.