Introduction

bs-elements is a framework-agnostic Web Component library built around the Bootstrap philosophy.

The same HTML markup, styles, JavaScript API, and events you already know, just wrapped in a declarative Custom Element API — without hiding, replacing, or reinventing anything. It feels more natural, composable, and built for modern development.

Use it with vanilla JS or any framework you like.

ℹ️ How it works?

  1. Place bs-elements.min.js script at the bottom of your Bootstrap 5 page.
  2. Use our custom elements e.g. <bs-modal> instead of generic <div> elements.
  3. Skip the boilerplate parts if you want and enjoy reactivity! ✨

For more information visit our GitHub repository.

📦 Base Components

bs-accordion

Body 1
Body 2
Body 3

bs-alert

This is an alert

bs-button

Button

bs-carousel

bs-collapse

Toggle collapse

Collapsed content

bs-dropdown

bs-modal

Open modal

bs-offcanvas

Open offcanvas

Modal body text goes here.

bs-popover

Click to toggle popover

bs-tabs

First tab Second tab Thrid tab Disabled tab

bs-toast

Hello, world! This is a toast message.

bs-tooltip

Tooltip on top

Made with ❤️, HTML and JS.