# Bootstrap Svelte — full documentation
> Every page of https://bootstrap-svelte.vercel.app as Markdown (@winkintel/bootstrap-svelte 2.1.0). Index with one-line summaries: https://bootstrap-svelte.vercel.app/llms.txt.
---
# Bootstrap 5 components for Svelte 5
Source: https://bootstrap-svelte.vercel.app/ — part of the Bootstrap Svelte documentation (index: https://bootstrap-svelte.vercel.app/llms.txt).
Svelte 5 · Bootstrap 5 · TypeScript
`@winkintel/bootstrap-svelte` provides Bootstrap 5 components for Svelte 5 and SvelteKit with TypeScript-friendly, runes-ready APIs. Add Bootstrap CSS in your app; Bootstrap JavaScript is not required.
- [Browse components](https://bootstrap-svelte.vercel.app/components/accordion)
- [Install package](https://bootstrap-svelte.vercel.app/#installation)
- [npm](https://www.npmjs.com/package/@winkintel/bootstrap-svelte)
- [GitHub](https://github.com/WinkIntel/bootstrap-svelte)
## Installation
Add the package with Bootstrap. Svelte `^5.29.0` is a peer dependency, so keep your app on Svelte 5 separately from the package install command.
### 1 Install
```bash
pnpm add @winkintel/bootstrap-svelte bootstrap
```
Peer dependency: `svelte: ^5.29.0`
### 2 Use
```html
Review the details before continuing.
The current breakpoint is: {currentBreakpoint != null ? BreakpointEnum[currentBreakpoint] : 'undefined'}
``` ## Render On Single Breakpoint Example ```html👋🏼😁 Hello Medium Screens
👋🏼😁 Hello Medium and Large Screens
The current breakpoint is: {onChangeCurrentBreakpoint != null ? BreakpointEnum[onChangeCurrentBreakpoint] : 'undefined'}
The previous breakpoint is: {onChangePreviousBreakpoint != null ? BreakpointEnum[onChangePreviousBreakpoint] : 'undefined'}
``` ## OnBreakUp Callback Example ```htmlThe breakpoint broke up from {onBreakUpFromBreakpoint != null ? BreakpointEnum[onBreakUpFromBreakpoint] : 'undefined'}
The breakpoint broke up to: {onBreakUpToBreakpoint != null ? BreakpointEnum[onBreakUpToBreakpoint] : 'undefined'}
``` ## OnBreakDown Callback Example ```htmlThe breakpoint broke down from {onBreakDownFromBreakpoint != null ? BreakpointEnum[onBreakDownFromBreakpoint] : 'undefined'}
The breakpoint broke down to: {onBreakDownToBreakpoint != null ? BreakpointEnum[onBreakDownToBreakpoint] : 'undefined'}
``` ## API Reference ### Props | Name | Type | Default | Description | | --- | --- | --- | --- | | `currentBreakpoint` | `BreakpointEnum \| undefined` | `undefined` | Reference to the current breakpoint | | `isDisabled` | `boolean` | `false` | Disables the breakpoint monitor if set to true. | | `renderOn` | `BreakpointEnum \| BreakpointEnum[] \| undefined` | `undefined` | Controls whether the children are rendered based on the current breakpoint. | ### Events | Name | Type | Description | | --- | --- | --- | | `onChange` | `(changeEvent: ChangeEvent) => void` | Fired when the breakpoint changes. | | `onBreakUp` | `(breakEvent: BreakEvent) => void;` | Fired when the breakpoint is about to change to a larger size (at the start of the transition). | | `onBreakDown` | `(breakEvent: BreakEvent) => void;` | Fired when the breakpoint is about to change to a smaller size (at the start of the transition). | --- # Container > Bootstrap's basic container component built with Svelte 5. Containers are used to contain, pad, and center content within a given viewport. Source: https://bootstrap-svelte.vercel.app/layout/container — part of the Bootstrap Svelte documentation (index: https://bootstrap-svelte.vercel.app/llms.txt). ## Basic Example Containers are the most basic layout element in Bootstrap and are required when using the grid system. Choose from a responsive fixed-width container or a fluid-width container. ```htmlThis is content inside the default container.
This container is fluid and spans the full width of the viewport.
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.