Bootstrap 5 Components
Classes, code examples, variants, and Canvas-specific patterns for every major Bootstrap 5 component.
Layout
Hero Section
A hero section is the large, prominent area at the top of a web page — the first thing vis…
section.py-5 (custom — no dedicated BS5 hero class)Footer
A website footer is the section at the bottom of every page containing navigation links, l…
footer (HTML5 semantic element + Bootstrap grid)Sticky Sidebar
A Sticky Sidebar is a layout pattern where a secondary column remains fixed in the viewpor…
.sticky-sidebarContainer
A Bootstrap 5 Container is the foundational layout element that centers and horizontally p…
.containerGrid Row
A Bootstrap 5 Grid Row is a horizontal wrapper — created with the `.row` class — that cont…
.grid-rowCSS Grid
Bootstrap 5's CSS Grid system is an opt-in alternative to the standard flexbox-based grid,…
.css-gridGrid Column
A Bootstrap 5 Grid Column (col) is a horizontal division within a .row container that uses…
.grid-columnStack
Bootstrap 5's Stack component is a shorthand helper built on flexbox that arranges child e…
.stackFeature Grid
A feature grid is a structured layout that presents a set of product benefits, service hig…
.row.row-cols-1.row-cols-md-3Navigation
Navbar
The Bootstrap 5 navbar is a responsive navigation header component that automatically coll…
.navbarTabs
Bootstrap 5 tabs provide a way to present related content in separate panels that users sw…
.nav-tabs / .nav-pillsOffcanvas
Bootstrap 5 offcanvas is a sidebar/drawer component that slides in from the left, right, t…
.offcanvasBreadcrumb
A breadcrumb is a secondary navigation aid that shows the user's current page location wit…
.breadcrumbDropdown
The Bootstrap 5 Dropdown is a toggleable context menu component built on the Popper.js pos…
.dropdownNav Pills
Bootstrap 5 Nav Pills are a navigation component that styles links as pill-shaped tab butt…
.nav-pillsNav Tabs
Bootstrap 5 Nav Tabs transform a standard navigation list into a tabbed interface that sho…
.nav-tabsSidebar Nav
A Sidebar Nav is a vertical navigation panel fixed to the left (or right) edge of a layout…
.sidebar-navTab Content
Bootstrap 5 Tab Content is a navigation pattern that pairs a set of clickable tab triggers…
.tab-contentMega Menu
A Mega Menu is an expanded dropdown navigation panel that reveals multiple columns of link…
.mega-menuAnnouncement Bar
An announcement bar is a full-width, horizontally centred strip that sits above the primar…
.alert .d-flex .justify-content-center .align-items-centerStep Wizard
A step wizard is a multi-step navigation pattern that guides users through a sequential pr…
d-flex flex-column gap-3Notification Dropdown
A notification dropdown is a navbar-integrated panel that reveals a scrollable list of use…
.dropdown + .dropdown-menu + .badgeBreadcrumb with Schema
A Bootstrap 5 breadcrumb with schema is a navigation trail component that shows a user's c…
.breadcrumb-schemaSticky Header
A sticky header is a navigation bar that remains fixed at the top of the viewport as the u…
.sticky-headerContent
Pricing Table
A pricing table displays product or service tiers side-by-side, allowing visitors to compa…
.card (base component)Card
The Bootstrap 5 card is a flexible content container with optional header, footer, body, a…
.cardAccordion
The Bootstrap 5 accordion is a collapsible content panel component that shows one (or mult…
.accordionCarousel
The Bootstrap 5 carousel is a slideshow component for cycling through images, slides, or o…
.carouselTable
Bootstrap 5 provides extensive table styling via opt-in classes applied to standard HTML t…
.tableFeature Section
A feature section showcases the key benefits or capabilities of a product or service. In B…
row + col grid (no dedicated component)Testimonial Section
A testimonial section displays customer quotes, reviews, or case study highlights to build…
.card / blockquote (HTML5 semantic element)CTA Section
A CTA (call-to-action) section is a dedicated page section focused on driving a single con…
section + .btn (no dedicated component)List Group
The Bootstrap 5 List Group is a flexible component for displaying a series of related cont…
.list-groupIcon Box
An Icon Box is a content component that pairs an icon with a heading and short description…
.icon-boxTeam Member Card
A Team Member Card is a Bootstrap 5 UI component that displays a person's photo, name, job…
.team-cardTimeline
A Timeline component in Bootstrap 5 is a vertically or horizontally arranged sequence of e…
.timelineStat Counter
A Stat Counter is a Bootstrap 5 UI component that displays key metrics or numerical achiev…
.stat-counterFigure
The Bootstrap 5 Figure component provides semantic HTML structure for displaying images or…
.figureImage Thumbnail
Bootstrap 5's Image Thumbnail component adds a rounded border and padding around an image …
.image-thumbnailLead Text
Bootstrap 5's Lead Text component uses the `.lead` class to make a paragraph visually larg…
.lead-textFeature Box
A Feature Box is a self-contained content block that pairs an icon or image with a heading…
.feature-boxCounter
A Counter component in Bootstrap 5 displays animated numeric statistics that increment fro…
.counterClient Logo
A Client Logo component is a horizontal or grid-based display of partner, client, or integ…
.client-logoCard Group
A Bootstrap 5 Card Group renders multiple cards as a single connected unit with equal-heig…
.card-groupCallout
A Callout is a styled block element used to draw attention to important information, warni…
.calloutDisplay Heading
Bootstrap 5 Display Headings are oversized heading styles — `.display-1` through `.display…
.display-headingFAQ Accordion
A FAQ accordion is a vertically stacked list of questions where each answer panel expands …
.accordionVertical Timeline
A vertical timeline is a custom UI pattern that renders a chronological list of events alo…
d-flex flex-columnAvatar Group
An avatar group is a horizontal stack of circular user profile images that overlap one ano…
d-flex align-items-centerPricing Toggle
A Pricing Toggle is a UI control that switches a pricing section between two billing perio…
btn-group / form-check form-switchTestimonial Slider
A testimonial slider is a rotating set of customer or user quotes displayed one at a time,…
.carouselComparison Table
A comparison table is a structured UI pattern that places two or more options side by side…
.table .table-borderedCTA Banner
A CTA (call-to-action) banner is a full-width or contained section that combines a headlin…
d-flex align-items-center justify-content-betweenLogo Cloud
A logo cloud is a horizontal or grid-based row of partner, client, or sponsor brand marks …
d-flex flex-wrap justify-content-center align-items-center gap-4Stats Band
A stats band is a full-width horizontal strip that presents a small set of key metrics or …
py-5 bg-dark text-whiteProfile Card
A profile card is a self-contained UI block that presents a person's avatar, name, role, a…
.card .d-flex .flex-column .align-items-centerImage Lightbox
An image lightbox is an overlay pattern that displays a full-size image above the page con…
.modal .modal-dialog .modal-fullscreenRating Stars
A rating stars component displays a row of star icons that represent a score, typically on…
d-flex align-items-center gap-1Logo Marquee
A Logo Marquee is a horizontally scrolling strip that displays a row of client, partner, o…
.logo-marqueeForms
Forms
Bootstrap 5 provides a comprehensive form styling system including inputs, selects, checkb…
.form-control / .form-select / .form-checkForm Floating Label
Bootstrap 5 floating labels are animated form labels that start inside the input field as …
.form-floatingForm Select
The Bootstrap 5 Form Select component is a styled dropdown input element that lets users c…
.form-selectInput Group
Bootstrap 5 Input Groups extend standard form controls by allowing you to prepend or appen…
.input-groupButton Group
Bootstrap 5 Button Groups wrap a series of buttons into a single, visually connected unit …
.button-groupLogin Form
A Bootstrap 5 Login Form is a structured authentication interface built using Bootstrap's …
.login-formContact Form
A Bootstrap 5 contact form is a structured HTML form component that collects user input — …
.contact-formNewsletter Form
A Newsletter Form in Bootstrap 5 is an inline or stacked email capture component used to c…
.newsletter-formFile Upload
Bootstrap 5's file upload component is built on the native HTML `<input type='file'>` elem…
.file-uploadSearch Bar
A search bar is a focused input pattern that combines a text field with a submit trigger, …
.input-groupToggle Switch
The Bootstrap 5 Toggle Switch is a styled checkbox input that renders as a sliding on/off …
.toggle-switchFeedback
Modal
A Bootstrap 5 modal is a dialog box that appears on top of the current page, requiring use…
.modalAlert
Bootstrap 5 alerts provide contextual feedback messages for user actions. Eight colour var…
.alertToast
Bootstrap 5 toasts are lightweight, non-disruptive notification messages that appear tempo…
.toastProgress Bar
Bootstrap 5 progress bars display the progress of a task or metric as a filled horizontal …
.progress / .progress-barSpinner
Bootstrap 5 spinners are CSS-only loading indicators that communicate to users that an ope…
.spinner-border / .spinner-growProgress Bar
The Bootstrap 5 progress bar displays task completion or metric levels as a filled horizon…
.progress + .progress-barCookie Banner
A Cookie Banner is a fixed notification UI component that informs visitors about cookie us…
.cookie-bannerPopover
Bootstrap 5 Popovers are floating overlay panels triggered by user interaction (click or h…
.popoverPlaceholder (Skeleton)
Bootstrap 5 Placeholders (also called skeleton screens) are loading-state UI elements that…
.placeholderLoading Overlay
A Loading Overlay is a full-screen or container-scoped UI layer that blocks interaction an…
.loading-overlayEmpty State
An empty state is a UI pattern displayed when a container has no data to show — such as an…
.d-flex .flex-column .align-items-center .text-centerSkeleton Loader
A skeleton loader is a placeholder UI that mimics the shape and layout of real content whi…
bg-body-secondary rounded placeholder-waveInline Alert
An inline alert is a Bootstrap 5 contextual message displayed directly within the page lay…
.inline-alertUtilities
Badge
Bootstrap 5 badges are small labelling components used to add counts, status labels, tags,…
.badgeRatio
The Bootstrap 5 ratio helper creates responsive elements that maintain a specific aspect r…
.ratioBack to Top Button
A Back to Top button is a fixed-position UI element that appears after the user scrolls pa…
.back-to-topClose Button
The Bootstrap 5 Close Button is a pre-styled dismissal control rendered as a transparent b…
.close-buttonScroll To Top
A Scroll To Top button is a fixed-position UI element that appears after the user scrolls …
.scroll-to-topDark Mode Toggle
A Dark Mode Toggle is a UI control — typically a checkbox-based switch or button — that al…
.dark-mode-toggleCollapse
Bootstrap 5 Collapse is a JavaScript-powered utility that toggles the visibility of conten…
.collapseSocial Icons
Social Icons in Bootstrap 5 are inline icon links — typically using icon fonts like Bootst…
.social-iconsDivider
The Bootstrap 5 divider is a reusable UI component that provides consistent styling and be…
.dividerSticky CTA
A Sticky CTA is a fixed-position bar or button that remains visible at the bottom (or top)…
fixed-bottom d-flexGenerate complete Bootstrap 5 pages
Canvas Builder assembles Bootstrap 5 components into complete, professional layouts. Describe your page and get production-ready HTML in ~3 minutes.
Start Generating