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 🙏

© 2024 – Pkg Stats / Ryan Hefner

inferno-bootstrap

v7.3.2

Published

Bootstrap as Inferno components, adapted from Reactstrap

Downloads

98

Readme

inferno-bootstrap

Build Status gzip size

Inferno components for Bootstrap 4. Ported from Reactstrap with some modifications.

View component docs at https://jhsware.github.io/inferno-bootstrap-docs/

Upgrade notes

NOTE! If you have cherry picked from /dist, please change to /lib

Compatibility

inferno-bootstrap 7.x supports Inferno v7

inferno-bootstrap 6.x supports Inferno v6

inferno-bootstrap 5.x supports Inferno v5

inferno-bootstrap 4.x supports Inferno v4

inferno-bootstrap 3.x supports Inferno v3 (code in InfernoV3 branch)

Reactstrap components not yet ported:

  • Uncontrolled input components
  • ~Media~ DONE
  • Fade
  • Carousel
  • Form inline attribute (you can do it by adding bootstrap classes manually)

To understand how to use inferno-bootstrap, visit the component docs and the excellent Bootstrap 4 website. When confused, check out the source code and tests.

Installation

To use infern-bootstrap you need to include the Bootstrap CSS files, but not any of the Bootstrap JavaScript.

$ npm install --save-prod inferno-bootstrap bootstrap@4

Usage

// Use ES6 style imports and optionally tree-shaking
import { Input } from 'inferno-bootstrap'

// ...or, cherry pick to reduce size if you don't have tree-shaking
import Input from 'inferno-bootstrap/lib/Form/Input'

// ...or, if you are cherry picking and using TypeScript
import * as Input from 'inferno-bootstrap/lib/Form/Input'

You can get a nicer debugging experience by importing your components from the original source code in the /src directory. This requires that you transpile all imports from node_module/inferno-bootstrap and add the transpiling options found in the .babelrc config file at the root of this repos:

// Cherry pick to reduce size
import Input from 'inferno-bootstrap/src/Form/Input'

// Or keep it simple and use tree shaking
import { Input } from 'inferno-bootstrap/src'

You will find a working webpack.config file in the folder test/browser. Don't forget to add your babel plugin devDepencies etc.

Animations

This package uses the standard bootstrap CSS-animations with the help of the inferno-animation library.

To create basic bootstrap style animations for your own components, check out the source code of Collapse.js and AnimateModal.js. If you want to create CSS animations with different behaviour on enter and leave, take a look at the animation helpers in inferno-animation.

Generate Off-line Docs

To generate off-line docs, clone the repos and run:

$ npm run build-test
$ ./scripts/generateDocs.sh

Your docs will be placed in project/docs.

TODO: Implement https://github.com/reactstrap/reactstrap/commit/5c5c2056b08b21502d8543e54cbc5341c966bf33