Skip to content

Repository files navigation

Bootstrap as Web Components

Based on the work of Mike Costello, Demo and Repository.

The goal of these Bootstrap lookalike web Components as to implement each component as a standalone component. Hence no dependencies on jQuery or Bootstrap.

There are oppurtunities for refactoring using common super classes but, as stated, the goal was to create each each component with no dependencies.

Example

Web component use both value based attribute and boolean attribute to control styling.

<divid='progress-bars'><bswc-progress-barvalue='10' width=300px>10%</bswc-progress-bar><bswc-progress-barvalue='20' info>Moving along</bswc-progress-bar><bswc-progress-barvalue='40' success>Half done!</bswc-progress-bar><bswc-progress-barvalue='60' warningstriped>60 percent completed</bswc-progress-bar><bswc-progress-barvalue='80' dangerstripedanimated>80% World domination almost complete!</bswc-progress-bar><bswc-progress-barvalue='100' secondarystripedanimated>D O N E !</bswc-progress-bar></div>

Compatability

Currently, Jan 2020, these web components render correctly with the lastest versions of Chrome, Firefox, Firefox Developer Edition. All components except Breadcrumbs render with the lastest macOS version of Safari.

Didn't work on MicroSoft Edge or any versions of IE because ShadowDOM support may not yet be available. However, works great with Microsoft Edge Beta

Live Demo

Local Demo

If you open each HTML locally running in a web server environment e.g. Visual Studio Code's "Live Server" or node.js' live-server.

About

Bootstrap works-alike web components, no dependencies; Standalone components

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages