GithubHelp home page GithubHelp logo

morbidick / bootstrap-webcomponents Goto Github PK

View Code? Open in Web Editor NEW
39.0 6.0 4.0 513 KB

[WiP] Rewrite of bootstrap components as web components.

Home Page: https://bootstrap.morbi-happens.de/demo/

License: MIT License

JavaScript 57.88% HTML 42.12%
bootstrap lit-html webcomponents ui frontend lit-element

bootstrap-webcomponents's Introduction

Bootstrap Web Components

CircleCI npm version npm bundle size (minified + gzip)

๐Ÿ›  Status: In Development

Components get implemented as needed. PRs welcome!

Rewrite of bootstrap components as web components. See the demo for all implemented features.

Motivation

This isn't just a webcomponents wrapper around the bootstrap css, this aims to be a clean and simple rewrite easily understandable to everyone new to the webcomponents standards.

  • No build chain / preprocessors
  • allow easy theming via css custom properties
  • provide a clear api to end users in the form of attributes
  • Use web standards over big libraries where possible (even if that means loosing compatibility eg. dialog element)
  • Provide support to projects to include polyfills and buildsteps for the above points

Install

npm install @morbidick/bootstrap

Usage

Import into your module script:

import { BsButton, BsBadge } from "@morbidick/bootstrap/elements.js"

Alternatively, load a bundled version from CDN:

<script src="https://unpkg.com/@morbidick/bootstrap@latest/dist/elements.bundled.min.js"></script>

Use it in your web page:

<bs-button href="#link">Click Me</bs-button>
<bs-badge class="warning">warning</bs-badge>

Development

View the contributing notes for instructions and further resources.

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.