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…
.stackNavigation
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-menuContent
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-headingForms
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-uploadFeedback
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-overlayUtilities
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…
.dividerGenerate 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