# bootstrap-ng
> Angular 21.2+ components for Bootstrap 6. Standalone components and directives with signal inputs and outputs. They render Bootstrap's own markup through attribute selectors such as `
`, and use no Bootstrap JavaScript.
Install with `npm install bootstrap-ng bootstrap` and add Bootstrap's CSS to the app. Selectors use the `bs` prefix and exported classes start with `Bs` (for example `BsAlert`). Bootstrap 6 markup differs from Bootstrap 5: buttons use `.btn-solid`, `.btn-outline` or `.btn-subtle` with a `.theme-*` class, dialogs use the native `
` element and accordions use ``.
## Getting started
- [Introduction](https://bootstrap-ng.com/getting-started/): Add bootstrap-ng to an Angular application and use your first component.
- [Quickstart](https://bootstrap-ng.com/getting-started/quickstart/): Create a new Angular application with bootstrap-ng and build a small page with a dialog and a toast.
- [Conventions](https://bootstrap-ng.com/getting-started/conventions/): The rules that every bootstrap-ng component follows.
- [Theming](https://bootstrap-ng.com/getting-started/theming/): Theme colors, light and dark color modes, and customizing Bootstrap in an Angular application.
- [Global configuration](https://bootstrap-ng.com/getting-started/configuration/): Set default values for component inputs once, for the whole app or for part of it.
- [Services and helpers](https://bootstrap-ng.com/getting-started/services/): The services, functions and types that bootstrap-ng exports besides its components.
- [Server-side rendering](https://bootstrap-ng.com/getting-started/server-rendering/): Use bootstrap-ng with server-side rendering, prerendering, hydration and zoneless change detection.
- [Content Security Policy](https://bootstrap-ng.com/getting-started/content-security-policy/): Run bootstrap-ng under a strict Content Security Policy (CSP), with nonces for Angular's styles and no ``'unsafe-eval'.
- [Accessibility](https://bootstrap-ng.com/getting-started/accessibility/): What bootstrap-ng does to make its components accessible, and what is still up to you.
- [Internationalization](https://bootstrap-ng.com/getting-started/internationalization/): Translate the text that components render, show dates in any locale and lay out pages from right to left.
- [Browsers and devices](https://bootstrap-ng.com/getting-started/browsers/): The browsers bootstrap-ng supports, on desktop and mobile.
- [Testing](https://bootstrap-ng.com/getting-started/testing/): Tips for unit testing Angular components that use bootstrap-ng.
- [AI](https://bootstrap-ng.com/getting-started/ai/): Give AI assistants and coding agents up-to-date knowledge of bootstrap-ng.
- [VS Code extension](https://bootstrap-ng.com/getting-started/vs-code/): Autocomplete, hovers, snippets and diagnostics for bootstrap-ng in Angular templates, in Visual Studio Code and other editors that use Open VSX.
- [Changelog](https://bootstrap-ng.com/getting-started/changelog/): Notable changes in each release. While Bootstrap 6 is in alpha, any release may include breaking changes.
## Components
- [Accordion](https://bootstrap-ng.com/components/accordion/): Vertically collapsing sections built on native `` and `` elements.
- [Alert](https://bootstrap-ng.com/components/alert/): Contextual feedback messages for typical user actions.
- [Avatar](https://bootstrap-ng.com/components/avatar/): Users or entities shown as an image or initials, with sizes, status indicators and stacks.
- [Badge](https://bootstrap-ng.com/components/badge/): Small components for counts and labels.
- [Breadcrumb](https://bootstrap-ng.com/components/breadcrumb/): Shows the current page’s location within the site’s hierarchy.
- [Button](https://bootstrap-ng.com/components/button/): Bootstrap button styles for ``, `` and ` ` elements.
- [Button group](https://bootstrap-ng.com/components/button-group/): Group a series of buttons on one line, stack them in a column, or combine groups in a toolbar.
- [Card](https://bootstrap-ng.com/components/card/): A flexible content container with a header, footer, images and theme variants. Cards are plain markup, so there is no directive.
- [Carousel](https://bootstrap-ng.com/components/carousel/): A slideshow built on CSS scroll snapping: the browser handles sliding, swiping and momentum, and bootstrap-ng handles the active slide, controls, keyboard and autoplay.
- [Close button](https://bootstrap-ng.com/components/close-button/): A generic close button for dialogs, alerts and more.
- [Collapse](https://bootstrap-ng.com/components/collapse/): Show and hide content. Bootstrap 6 animates the size in CSS, so there is no JavaScript animation code.
- [Dialog](https://bootstrap-ng.com/components/dialog/): Dialogs built on the native `` element, which replaces Bootstrap’s old modal.
- [Drawer](https://bootstrap-ng.com/components/drawer/): A panel that slides in from an edge of the screen, built on the native dialog element. Bootstrap 6’s replacement for offcanvas.
- [Icon](https://bootstrap-ng.com/components/icon/): SVG icons from Bootstrap Icons, Font Awesome, Material Symbols, Modus Icons, Phosphor Icons or your own icon set, loaded one at a time and sized and colored like text.
- [List group](https://bootstrap-ng.com/components/list-group/): Lists of items, links or buttons, with active, disabled and theme states.
- [Menu](https://bootstrap-ng.com/components/menu/): Menus of actions and links, Bootstrap 6’s replacement for dropdowns, positioned with Floating UI.
- [Nav](https://bootstrap-ng.com/components/nav/): Navigation lists styled as plain links, tabs, pills or underlines. To switch panels, use tabs instead.
- [Nav overflow](https://bootstrap-ng.com/components/nav-overflow/): Moves navigation links that do not fit into a “More” menu, also known as the Priority+ pattern.
- [Navbar](https://bootstrap-ng.com/components/navbar/): A responsive navigation header. Below its breakpoint the navigation collapses into a drawer opened by the toggler.
- [Pagination](https://bootstrap-ng.com/components/pagination/): Page navigation for long lists and search results, with previous and next buttons and ellipses when there are many pages.
- [Placeholder](https://bootstrap-ng.com/components/placeholder/): Loading placeholders, or skeletons, that show where content will appear.
- [Popover](https://bootstrap-ng.com/components/popover/): Popovers with an optional header, opened by clicking their trigger and positioned with Floating UI.
- [Progress](https://bootstrap-ng.com/components/progress/): Progress bars with labels, themes, stripes and stacking.
- [Scrollspy](https://bootstrap-ng.com/components/scrollspy/): Highlights the navigation link of the section scrolled into view.
- [Spinner](https://bootstrap-ng.com/components/spinner/): Loading indicators built with HTML and CSS.
- [Stepper](https://bootstrap-ng.com/components/stepper/): Steps of a process, such as a sign-up flow or checkout, laid out vertically or in a row.
- [Tab](https://bootstrap-ng.com/components/tab/): Tabbed interfaces built on Bootstrap’s nav styles, with the WAI-ARIA tabs keyboard pattern.
- [Table](https://bootstrap-ng.com/components/table/): Data tables on Bootstrap’s table styles, with sorting by one or several columns, search, pagination, row selection, expandable rows, virtual scrolling, and pinned, resizable and reorderable columns.
- [Toasts](https://bootstrap-ng.com/components/toasts/): Lightweight notifications that hide on their own, pausing while the pointer or focus is inside them.
- [Toggler](https://bootstrap-ng.com/components/toggler/): Toggles a class or attribute on click, for small interactions that would otherwise need a one-off handler.
- [Tooltip](https://bootstrap-ng.com/components/tooltip/): Tooltips positioned with Floating UI, shown on hover and keyboard focus and dismissed with Escape.
## Forms
- [Overview](https://bootstrap-ng.com/forms/overview/): Form controls, layout and validation that work with Angular forms.
- [Field](https://bootstrap-ng.com/forms/field/): A layout wrapper that places a control’s label, description and validation feedback.
- [Form control](https://bootstrap-ng.com/forms/form-control/): Text inputs, textareas and selects with sizes, states and validation styles.
- [Checkbox](https://bootstrap-ng.com/forms/checkbox/): Native checkboxes with theme colors, sizes and an indeterminate state.
- [Radio](https://bootstrap-ng.com/forms/radio/): Native radios for choosing one option from many.
- [Switch](https://bootstrap-ng.com/forms/switch/): A toggle switch built on a native checkbox.
- [Range](https://bootstrap-ng.com/forms/range/): Range inputs with a filled track, a value bubble and tick marks.
- [Input group](https://bootstrap-ng.com/forms/input-group/): Text, buttons and menus attached to either side of a form control.
- [Floating labels](https://bootstrap-ng.com/forms/floating-labels/): Labels that float over their form controls.
- [Form adorn](https://bootstrap-ng.com/forms/form-adorn/): Icons and text inside a form control, next to the input.
- [Chips](https://bootstrap-ng.com/forms/chips/): Small interactive elements for people, places, tags or values, and a chip input for multi-value fields like skills, categories or email recipients.
- [Combobox](https://bootstrap-ng.com/forms/combobox/): A select-like button with rich options, search and multiple selection, built on the menu.
- [Typeahead](https://bootstrap-ng.com/forms/typeahead/): A text input that suggests values while the user types. The user can pick a suggestion or keep their own text.
- [Datepicker](https://bootstrap-ng.com/forms/datepicker/): A calendar and date picker popup, opened from an input or a button, with range selection, multiple months and more.
- [OTP input](https://bootstrap-ng.com/forms/otp-input/): One-time passwords, PIN codes and verification codes, in a single accessible input drawn as separate slots.
- [Password strength](https://bootstrap-ng.com/forms/password-strength/): Feedback on password strength, with a segmented meter or a bar that updates as people type.
- [Rating](https://bootstrap-ng.com/forms/rating/): Star ratings for reviews and feedback, with keyboard support, half stars and a read-only mode for averages.
- [File dropzone](https://bootstrap-ng.com/forms/file-dropzone/): Drag-and-drop file upload built on a native file input, with type and size limits, image previews and a removable file list.
- [Layout](https://bootstrap-ng.com/forms/layout/): Stacked, grid, horizontal and inline form layouts.
- [Validation](https://bootstrap-ng.com/forms/validation/): Validation styles that follow Angular form state, native constraints or the server.
## Optional
- [Full documentation](https://bootstrap-ng.com/llms-full.txt): every page of these docs, with example code and API tables, in one Markdown file
- [Source code](https://github.com/bootstrap-ng/bootstrap-ng): the library and this docs site
- [Install skill](https://github.com/bootstrap-ng/bootstrap-ng/blob/main/skills/bootstrap-ng-install/SKILL.md): an agent skill for adding bootstrap-ng to an Angular application (`npx skills add bootstrap-ng/bootstrap-ng`)
- [Bootstrap 6 docs](https://getbootstrap.com/docs/6.0/): the CSS, markup and theming that bootstrap-ng builds on