0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-16 06:58:43 +00:00
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. https://getbootstrap.com
  • MDX 28.1%
  • JavaScript 27.4%
  • Astro 11%
  • CSS 10.8%
  • SCSS 9.5%
  • Other 13.1%
Find a file
Mark Otto 7cd22cd934 fix(datepicker): preserve form state through overlapping actions
Format prefilled dates before focus and submit their ISO values.
Keep a completed reset when a later reset is canceled. Ignore an
older popup opening after a new opening starts. Respect disabled
fieldsets when opening the calendar.

Keep these fixes from the previous merge commit on the rebased
branch and retain the Datepicker migration notes.
History 2026-11-14 12:53:03 -08:00
.cursor/skills/bootstrap-release Prepare Bootstrap v6.0.0-alpha.1 release (#42997) 2026-10-08 09:37:03 -07:00
.github Prototype native gap gutters for the flexbox grid (#43282) 2026-11-14 12:49:08 -08:00
.vscode Add VSCode Extensions & Settings Configs (#41498) 2025-05-29 12:06:36 -07:00
build Prototype native gap gutters for the flexbox grid (#43282) 2026-11-14 12:49:08 -08:00
dist Prepare Bootstrap v6.0.0-alpha.1 release (#42997) 2026-10-08 09:37:03 -07:00
js fix(datepicker): preserve form state through overlapping actions 2026-11-14 12:53:03 -08:00
nuget Bump copyright and example dates from 2025 to 2026 2026-02-15 21:05:42 -10:00
scss Repair Datepicker popup and form behavior 2026-11-14 12:51:26 -08:00
site fix(datepicker): preserve form state through overlapping actions 2026-11-14 12:53:03 -08:00
skills Unify chip input and editable Combobox (#43300) 2026-11-12 12:48:15 -08:00
.browserslistrc Raise the v6 browser support floor (#43177) 2026-11-03 21:32:01 -08:00
.bundlewatch.config.json chore(bundlewatch): account for Datepicker fixes 2026-11-14 12:51:43 -08:00
.cspell.json Unify chip input and editable Combobox (#43300) 2026-11-12 12:48:15 -08:00
.editorconfig Trim trailing whitespace from markdown files (#29460) 2019-10-02 22:48:15 +03:00
.gitattributes Update .gitattributes (#30934) 2020-06-12 11:23:44 +03:00
.gitignore chore(lint): ignore expected local lint noise 2026-09-25 21:37:08 -07:00
.markdownlint.json v6: Add sub-groups to Utilities docs (#41758) 2026-01-08 20:06:23 -08:00
.ncurc.json chore(deps): pin prettier-plugin-astro to 0.14.1 2026-09-22 18:34:49 +02:00
.nvmrc Bump Node in .nvmrc from 24.17.0 to 24.18.0 2026-06-25 19:55:25 +02:00
.prettierignore Docs: migration from Hugo to Astro (#41251) 2025-04-15 18:37:47 +02:00
.stylelintignore Docs: migration from Hugo to Astro (#41251) 2025-04-15 18:37:47 +02:00
AGENTS.md Unify chip input and editable Combobox (#43300) 2026-11-12 12:48:15 -08:00
CODE_OF_CONDUCT.md Docs: migration from Hugo to Astro (#41251) 2025-04-15 18:37:47 +02:00
composer.json Remove "extra" section from composer.json (#29420) 2019-10-02 22:10:31 +03:00
config.yml Docs: point the SRI Hash Generator link to srihash.org (#43258) 2026-11-01 08:41:21 +01:00
eslint.config.js chore(lint): ignore expected local lint noise 2026-09-25 21:37:08 -07:00
LICENSE Bump copyright and example dates from 2025 to 2026 2026-02-15 21:05:42 -10:00
package-lock.json Build(deps-dev): Bump the development-dependencies group with 14 updates (#43339) 2026-11-11 10:43:21 +01:00
package.js Use dotted Bootstrap 6 alpha version (#42984) 2026-10-06 11:39:46 -07:00
package.json Prototype native gap gutters for the flexbox grid (#43282) 2026-11-14 12:49:08 -08:00
pagefind.yml v6: Add Pagefind with custom components (#42369) 2026-04-30 17:02:17 -07:00
README.md Add link to Bootstrap OpenSSF Scorecard Report in README (#43037) 2026-10-11 11:08:48 +02:00
SECURITY.md Improve Security Policy score (#42481) 2026-06-08 06:33:51 +02:00
stylelint.config.mjs Use modern :not() syntax (#42268) 2026-04-03 22:17:08 -07:00
tsconfig.json Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00

Bootstrap logo

Bootstrap

Sleek, intuitive, and powerful front-end framework for faster and easier web development.
Explore Bootstrap docs »

Report bug · Request feature · Blog

Bootstrap 6

Our default branch is for development of our Bootstrap 6 release. Head to the v5-dev branch to view the readme, documentation, and source code for Bootstrap 5.

Table of contents

Quick start

Several quick start options are available:

  • Download the latest release
  • Clone the repo: git clone https://github.com/twbs/bootstrap.git
  • Install with npm: npm install bootstrap@6.0.0-alpha.1
  • Install with yarn: yarn add bootstrap@6.0.0-alpha.1
  • Install with Bun: bun add bootstrap@6.0.0-alpha.1
  • Install with Composer: composer require twbs/bootstrap:6.0.0-alpha.1
  • Install with NuGet: CSS: Install-Package bootstrap Sass: Install-Package bootstrap.sass

Read the Getting started page for information on the framework contents, templates, examples, and more.

Status

Build Status npm version Gem version Meteor Atmosphere Packagist Prerelease NuGet Coverage Status CSS gzip size CSS Brotli size JS gzip size JS Brotli size Open Source Security Foundation Scorecard Backers on Open Collective Sponsors on Open Collective

What’s included

Within the download you’ll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.

Download contents
bootstrap/
├── css/
│   ├── bootstrap-grid.css
│   ├── bootstrap-grid.css.map
│   ├── bootstrap-grid.min.css
│   ├── bootstrap-grid.min.css.map
│   ├── bootstrap-reboot.css
│   ├── bootstrap-reboot.css.map
│   ├── bootstrap-reboot.min.css
│   ├── bootstrap-reboot.min.css.map
│   ├── bootstrap-utilities.css
│   ├── bootstrap-utilities.css.map
│   ├── bootstrap-utilities.min.css
│   ├── bootstrap-utilities.min.css.map
│   ├── bootstrap.css
│   ├── bootstrap.css.map
│   ├── bootstrap.min.css
│   └── bootstrap.min.css.map
└── js/
    ├── bootstrap.bundle.js
    ├── bootstrap.bundle.js.map
    ├── bootstrap.bundle.min.js
    ├── bootstrap.bundle.min.js.map
    ├── bootstrap.js
    ├── bootstrap.js.map
    ├── bootstrap.min.js
    └── bootstrap.min.js.map

We provide compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*). Source maps (bootstrap.*.map) are available for use with certain browsers' developer tools. Bundled JS files (bootstrap.bundle.js and minified bootstrap.bundle.min.js) include Floating UI and Vanilla Calendar Pro. All CSS files work for both LTR and RTL layouts thanks to logical properties—simply set dir="rtl" on your HTML element.

Bugs and feature requests

Have a bug or a feature request? Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Documentation

Bootstrap’s documentation, included in this repo in the root directory, is built with Astro and publicly hosted on GitHub Pages at https://getbootstrap.com/. The docs may also be run locally.

Documentation search is powered by Pagefind.

Running documentation locally

  1. Run npm install to install the Node.js dependencies, including Astro (the site builder).
  2. Run npm run test (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
  3. From the root /bootstrap directory, run npm run docs-serve in the command line.
  4. Open http://localhost:9001 in your browser, and voilà.

Learn more about using Astro by reading its documentation.

Documentation for previous releases

You can find all our previous releases docs on https://getbootstrap.com/docs/versions/.

Previous releases and their documentation are also available for download.

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Moreover, if your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the Code Guide, maintained by Mark Otto.

Editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at https://editorconfig.org/.

Community

Get updates on Bootstrap’s development and chat with the project maintainers and community members.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, Bootstrap is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we adhere to those rules whenever possible.

See the Releases section of our GitHub project for changelogs for each release version of Bootstrap. Release announcement posts on the official Bootstrap blog contain summaries of the most noteworthy changes made in each release.

Creators

Mark Otto

Jacob Thornton

Thanks

Netlify

Thanks to Netlify for providing us with Deploy Previews!

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

OC sponsor 0 OC sponsor 1 OC sponsor 2 OC sponsor 3 OC sponsor 4 OC sponsor 5 OC sponsor 6 OC sponsor 7 OC sponsor 8 OC sponsor 9

Backers

Thank you to all our backers! 🙏 [Become a backer]

Backers

Code and documentation copyright 2011-2026 the Bootstrap Authors. Code released under the MIT License. Docs released under Creative Commons.