Giter VIP home page Giter VIP logo

bootstrap-elements's Introduction

Bootstrap Elements logo

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.

<script src="jquery.min.js"></script>
<script src="bootstrap-elements.js"></script>

Custom Bootstrap CSS

If you want to provide your own css you can pass it via a variable on the window.

<script>
    window.CustomBootstrapCSS = "body { background-color:red }";
</script>
<script src="bootstrap-elements.js"></script>

Full documentation can be found on the site: https://bootstrap-elements.netlify.com/components.html

Button Example

<be-button type="primary">primary</be-button>
<be-button type="secondary">secondary</be-button>
<be-button type="success">success</be-button>
<be-button type="danger">danger</be-button>
<be-button type="warning">warning</be-button>`

Nav Example

<be-nav>
    <be-navitem>item 1</be-navitem>
    <be-navitem>item 2</be-navitem>
    <be-navitem>item 3</be-navitem>
    <be-navitem disabled="true">item 4</be-navitem>
</be-nav>

bootstrap-elements's People

Contributors

fahimc avatar codedia avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.