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

react-bootstrap-plugins

v2.0.0

Published

Production-grade Bootstrap 5 UI plugins for React — DatePicker, SearchSelect, Label, TableLoading, and more. Zero runtime dependencies beyond React.

Readme

react-bootstrap-plugins

Production-grade Bootstrap 5 UI components for React 18+. Zero runtime dependencies. Tree-shakeable.

license


Components

| Component | Guide | Description | |---|---|---| | DatePicker | DATEPICKER.md | Date, time, and datetime picker with popover calendar | | SearchSelect | SEARCHSELECT.md | Filterable, searchable select dropdown | | Label | LABEL.md | Bootstrap-styled form label with required indicator | | TableLoading | TABLELOADING.md | Bootstrap 5 placeholder loading skeleton for table <tbody> |

Each component guide includes full prop tables, usage examples, import patterns, and dark mode behavior.


Features

  • 🎯 Zero runtime dependencies — only React and React DOM as peer dependencies
  • 🌳 Tree-shakeable — import only what you need; unused components are stripped at build time
  • 🎨 Bootstrap 5 native — uses CSS custom properties (--bs-*), respects dark mode via [data-bs-theme="dark"]
  • 📦 ESM + CJS dual format — works with any bundler (Vite, webpack, Turbopack, Rollup)
  • 🔒 TypeScript ready — full .d.ts declarations included
  • Accessible — ARIA attributes, keyboard navigation, screen-reader friendly
  • 📱 Responsive — mobile-optimized layouts for all components

Installation

npm install react-bootstrap-plugins
# or
pnpm add react-bootstrap-plugins
# or
yarn add react-bootstrap-plugins

Peer Dependencies

Make sure you have React 18+ and Bootstrap 5 CSS loaded:

npm install react react-dom bootstrap
// In your app entry point
import 'bootstrap/dist/css/bootstrap.min.css'

CSS Imports

DatePicker requires a small CSS file for its popover calendar layout. Import it once in your app (e.g., in your root component or entry point):

// Recommended — uses the package exports map (works with Vite, webpack 5+, Turbopack, Rollup)
import 'react-bootstrap-plugins/css/plugins.css'

This resolves to dist/css/plugins.css via the package's exports map. No additional configuration is needed for modern bundlers.

Backward compatibility: The old path react-bootstrap-plugins/css/datepicker.css still works — it points to the same file. Prefer the new plugins.css path for new code.

Troubleshooting CSS import issues

If your bundler reports "Cannot find module" or fails to resolve the CSS import:

  • Ensure you're on the latest version — prior versions may have had a packaging issue with nested CSS directories.

    pnpm update react-bootstrap-plugins
  • For older webpack (v4) — you may need to use the full path if your version doesn't support the exports field.

    import 'react-bootstrap-plugins/dist/css/plugins.css'
  • For Next.js — add the package to transpilePackages in next.config.mjs if not already present.

    transpilePackages: ['react-bootstrap-plugins']
  • For TypeScript — if you get a type error on the CSS import, add a declaration file (most projects already have this for CSS modules).

    // src/types/css.d.ts
    declare module '*.css' { const content: string; export default content }

Import Patterns

All patterns are tree-shakeable. Your bundler will only include the code you actually import.

// Single component — smallest bundle (default import)
import DatePicker from 'react-bootstrap-plugins/DatePicker'
import SearchSelect from 'react-bootstrap-plugins/SearchSelect'
import Label from 'react-bootstrap-plugins/Label'
import TableLoading from 'react-bootstrap-plugins/TableLoading'

// Single component — named import
import { DatePicker } from 'react-bootstrap-plugins/DatePicker'
import { SearchSelect } from 'react-bootstrap-plugins/SearchSelect'
import { Label } from 'react-bootstrap-plugins/Label'
import { TableLoading } from 'react-bootstrap-plugins/TableLoading'

// Multiple named — barrel, tree-shaken
import { DatePicker, SearchSelect, Label, TableLoading } from 'react-bootstrap-plugins'

// CSS (required for DatePicker)
import 'react-bootstrap-plugins/css/plugins.css'

Every component supports both default and named imports — use whichever fits your codebase conventions.


Dark Mode

All components respect Bootstrap 5's dark mode. Set data-bs-theme="dark" on any parent element:

<html data-bs-theme="dark">
  <!-- DatePicker popover, dropdown, and all styling adapt automatically -->
</html>

Or toggle dynamically:

function App() {
  const [theme, setTheme] = useState('light')

  return (
    <div data-bs-theme={theme}>
      <DatePicker value={date} onChange={handleDate} />
    </div>
  )
}

Bundle Size

| Import | Approx. Size (min+gzip) | |---|---| | DatePicker (with CSS) | ~5.5 KB | | SearchSelect | ~1.2 KB | | Label | ~0.3 KB | | TableLoading | ~0.2 KB | | All four (barrel) | ~6.7 KB |

Measured with ESM, tree-shaken, minified, gzipped. Your actual size depends on your bundler configuration.


Browser Support

  • Chrome 90+
  • Firefox 90+
  • Safari 15+
  • Edge 90+

Requires ResizeObserver (all modern browsers), CSS Grid, and CSS Custom Properties.


Security

  • All user content rendered as React text nodes — no raw HTML injection surfaces
  • No dynamic code evaluation or runtime code generation
  • DatePicker input is readOnly — displayed value is always the formatted date, never raw user input
  • Synthetic events use safe, explicit value construction
  • Popover content is isolated from the input DOM tree via React Portal

Report security issues to: [email protected]


Development

# Clone and install
git clone https://github.com/allios/react-bootstrap-plugins.git
cd react-bootstrap-plugins
pnpm install

# Build
pnpm run build

# Watch mode (rebuild on changes)
pnpm run dev

Project Structure

src/
├── index.js              Barrel export
├── lib/cn.js             Internal classname utility
├── components/
│   ├── DatePicker.jsx    Date/time/datetime picker
│   ├── SearchSelect.jsx  Searchable select dropdown
│   ├── Label.jsx         Form label
│   ├── TableLoading.jsx  Table placeholder skeleton
│   └── *.d.ts            TypeScript declarations
└── css/
    └── plugins.css

License

MIT © Tumwesigye Robert


Related

  • Bootstrap 5 — CSS framework this package integrates with
  • React — UI library
  • AlliOs — Multi-tenant SaaS ecosystem this package originated from