Bootstrap Elements
Custom Element wrappers for Bootstrap 4 components
documentation available at
bootstrap-elements site
Install
npm i bootstrap-elements
Include Files
Bootstrap Elements is a single js file which bundles Bootstrap js, css and Bootstrap Elements code
You might be wondering why the css is bundled? This is so that the css can be available within the shadow DOM. The CSS is converted to JS and then a style tag is adopted by the custom elements.
You can provide your own css. Please see the guide below.
Custom Bootstrap CSS
If you want to provide your own css you can pass it via a variable on the window.
Full documentation can be found on the site: https://bootstrap-elements.netlify.com/components.html
Button Example
primarysecondarysuccessdangerwarning`
Nav Example
item 1 item 2 item 3 item 4