!Unit Tests !Integration Tests 
Bootstrap 5 Components for Svelte 4+ Sveltestrap is a library designed to simplify the integration of Bootstrap 5 components into your Svelte applications. It eliminates the need for Bootstrap component classes, the inclusion of Bootstrap's JavaScript, and reliance on jQuery.
This open-source software is freely available under the permissive MIT license. It draws inspiration from the reactstrap library for React .
Please note that Sveltestrap does not directly embed Bootstrap style . To use Bootstrap themes effectively, you must include Bootstrap 5 CSS using one of the methods outlined below.
Note If you looking for Svelte 3.x support, you can use the original sveltestrap package.
$3 
---
Install ``bashnpm > npm install svelte @sveltestrap/sveltestrap
pnpm > pnpm install svelte @sveltestrap/sveltestrap
yarn > yarn add svelte @sveltestrap/sveltestrap
`
Bootstrap CSS It's essential to note that Bootstrap 5 components do not come with Bootstrap styles preloaded, so you'll need to add the stylesheet manually. Here's how you can add them:
1. Add to your apps static
index.html
file`
html rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" />`
2. Add to your main
App.svelte
file`
html `
3. Import the styles directly in your CSS bundle
`
html`
4. Use the provided Styles component
`
html
`
Then use Sveltestrap components in your svelte component:
`
html Hello World! |
`
Bootstrap Icons If you want to use the Icon component , you also must include a link to Bootstrap Icon CSS, for example:
Include it in your app's
App.svelte
:
`
html `
or you can include it in your app's
index.html
:
`
html rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" />`
or the Styles component includes the Bootstrap Icon CSS by default:
`
html
``
Sponsors 
Maintainers 

Contributors 























































