npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@winkintel/bootstrap-svelte

v1.0.0

Published

Bootstrap components for Svelte 5 with TypeScript support.

Readme

Bootstrap Svelte

Bootstrap components for Svelte 5 with TypeScript support.

Bootstrap Svelte provides ready-to-use, type-safe Bootstrap components built specifically for Svelte 5 applications. The package follows Bootstrap's design language while exposing Svelte-native component APIs.

Features

  • Svelte 5 compatible — built for current Svelte syntax and reactivity.
  • Bootstrap-oriented components — implements common Bootstrap UI patterns.
  • TypeScript support — component props and public utilities are typed.
  • Modular exports — import only the components/utilities you need.
  • Responsive by default — intended to work with Bootstrap's responsive CSS.
  • Package-local showcase — the SvelteKit docs/showcase app lives in src/routes.

Installation

pnpm add @winkintel/bootstrap-svelte bootstrap

# or
npm install @winkintel/bootstrap-svelte bootstrap

yarn add @winkintel/bootstrap-svelte bootstrap

Peer dependency

This package requires Svelte 5:

pnpm add svelte@^5.0.0

Bootstrap CSS is expected to be provided by the consuming application.

Bootstrap CSS

Import Bootstrap CSS in your application:

import 'bootstrap/dist/css/bootstrap.min.css';

Or use Bootstrap SCSS from your app stylesheet/build pipeline:

@import 'bootstrap/scss/bootstrap';

Quick start

<script>
    import { Alert, Button, Card, Modal } from '@winkintel/bootstrap-svelte';

    let showModal = $state(false);
</script>

<Alert colorVariant="primary" isDismissible>
    Welcome to Bootstrap Svelte!
</Alert>

<Card>
    <Card.Header>
        <Card.Title>Getting Started</Card.Title>
    </Card.Header>
    <Card.Body>
        <Card.Text>This is a card built with Bootstrap Svelte components.</Card.Text>
        <Button colorVariant="primary" onclick={() => (showModal = true)}>
            Open Modal
        </Button>
    </Card.Body>
</Card>

<Modal isShown={showModal}>
    <Modal.Dialog>
        <Modal.Content>
            <Modal.Header>
                <Modal.Title>Modal Title</Modal.Title>
            </Modal.Header>
            <Modal.Body>Modal content goes here.</Modal.Body>
            <Modal.Footer>
                <Button colorVariant="secondary" onclick={() => (showModal = false)}>
                    Close
                </Button>
            </Modal.Footer>
        </Modal.Content>
    </Modal.Dialog>
</Modal>

Available components

Layout

  • Container
  • Row
  • Col
  • Collapse

Content

  • Accordion
  • Alert
  • Badge
  • Card
  • ListGroup
  • Placeholder
  • Progress
  • Spinner

Navigation

  • Breadcrumb
  • Nav
  • Navbar
  • Pagination
  • Tab

Interactive

  • Button
  • ButtonGroup
  • Carousel
  • Dropdown
  • Modal
  • Offcanvas
  • Popover
  • Toast
  • Tooltip

Forms and utilities

  • Form
  • Form controls and input groups
  • Portal
  • BreakpointListener
  • CSS/class/style utilities

Local development

pnpm install
pnpm dev          # starts the SvelteKit showcase on http://localhost:5176
pnpm lint
pnpm check-types
pnpm test
pnpm build
npm pack --dry-run

Project structure

bootstrap-svelte/
├── src/
│   ├── lib/        # component library source
│   └── routes/     # SvelteKit showcase/docs app
├── static/         # showcase static assets
├── dist/           # generated package output
└── package.json

Testing

Components are tested with:

  • Vitest
  • @testing-library/svelte
  • @testing-library/jest-dom

Example:

import { render, screen } from '@testing-library/svelte';
import { createRawSnippet } from 'svelte';
import Button from './button.svelte';

test('renders button with correct variant', () => {
    render(Button, {
        props: {
            colorVariant: 'primary',
            children: createRawSnippet(() => ({
                render: () => 'Click me'
            }))
        }
    });

    const button = screen.getByRole('button');
    expect(button).toHaveClass('btn btn-primary');
    expect(button).toHaveTextContent('Click me');
});

TypeScript

Public types can be imported from the package:

import type { ButtonRootProps } from '@winkintel/bootstrap-svelte';

Browser support

Bootstrap Svelte targets modern browsers that support:

  • Svelte 5
  • Bootstrap 5
  • ES2020+ JavaScript features

License

Licensed under the Apache License 2.0.

Copyright 2026 Wink, Inc.

Acknowledgments