Skip to content

Pharmacy App Product List with Prescription Badge

Pharmacy app product list with medicine search, category chips, a filters bottom sheet, Rx prescription badges, quantity steppers and a cart total bar.

Also known as: online pharmacy app ui, medicine delivery app, drugstore product list mobile, prescription medicine shop screen, medicine ordering app template

Pharmacy App Product List with Prescription Badge live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A pharmacy app product list built with Bootstrap 6: an HTML mobile template for mobile sites and PWAs that can be packaged as a native app with Capacitor. This online pharmacy UI has medicine search, category chips, a filters bottom sheet, an "Rx required" prescription badge, quantity steppers and a cart total bar for medicine delivery apps.

How it works

The root .phx-app is a 430 px app column with a sticky top bar (.phx-bar) and a sticky dock (.phx-dock) holding the cart bar and the tab bar.

  • Products: each .phx-item stores data-cat, data-price, data-rx and data-stock. Rx products show a .phx-rx badge; sold-out items get a disabled button.
  • Search and chips: .phx-search-input filters by name and use, and .phx-chip buttons pick a category. .phx-empty appears when nothing matches.
  • Filters: the slider button opens a Bootstrap 6 Drawer (#phx-filter-sheet) with prescription radios, an "In stock only" switch and a sort select. The apply button counts matches live; options apply only when tapped, and .phx-filter-count shows how many are active.
  • Cart: "Add" turns into a .phx-step stepper; at zero "Add" returns. The cart bar shows the total, item count and Rx items.
  • Checkout: "View cart" opens #phx-cart-sheet with lines, delivery fee and total. Checkout is simulated with a timeout: add a fetch() to your order API there.
  • The delivery estimate in .phx-eta-time is computed from the current time and shown without a date.

Customization

  • --phx-teal and --phx-teal-dark on .phx-app: the accent of chips, steppers and buttons.
  • --phx-rx and --phx-rx-bg: the prescription badge and notice colors.
  • --phx-radius: the corner radius.
  • data-qty on .phx-item: the starting cart quantity (the demo starts with three items).
  • MAX_QTY, FREE_DELIVERY and DELIVERY_FEE in script.js: stepper limit, free delivery threshold and fee.
  • .phx-pack--pain, .phx-pack--skin and the other .phx-pack--* classes: the tinted icon tile per category.

Use cases

  • Online pharmacies: list medicines and mark prescription-only products.
  • Medicine delivery apps: add items with steppers and check the total.
  • Drugstore and health shop PWAs: search and filter a catalog on the phone.
  • Telehealth apps: order medicines after a consultation.

Accessibility

Chips, steppers and Add buttons have descriptive labels such as "Add one more Ibuprofen 200 mg", and each stepper is a role="group". Cart changes and result counts are announced in a polite live region (.phx-live). Focus moves to the stepper after "Add", back to "Add" at zero, and into each sheet when it opens. Sheets are native <dialog> elements that close with Escape or the backdrop. Touch targets are at least 44 px.

Usage notes

Products and prices are sample data, not medical advice. Uses Bootstrap Icons and Nunito Sans.

Bootstrap 6 notes

Sheets use Drawer (<dialog class="drawer drawer-bottom">) instead of Offcanvas or a Modal. The search uses form-adorn with form-ghost, radios use .radio in .form-field, the switch uses .switch, and sorting uses <select class="form-control"> because form-select was removed. Built on 6.0.0-alpha.1; alpha APIs can still change.

Pharmacy App Product List with Prescription Badge 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 Pharmacy App Product List with Prescription Badge 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=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,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.

Pharmacy App Product List with Prescription Badge – free Bootstrap 6 mobile shop & checkout template
Pharmacy App Product List with Prescription Badge · 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.

Order Confirmation and Tracking Screen – free Bootstrap 6 mobile shop & checkout template

Order Confirmation and Tracking Screen

Order confirmation screen for delivery apps with a success illustration, order number, ETA computed from now, live order tracking steps and a help sheet.