question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bootstrap Web Components

See original GitHub issue

Hi,

I was wondering if there have been any discussions on releasing a set of bootstrap web components; they seem to be the perfect use case for something like bootstrap.

Web Components are a set of standards that allows developers to make reusable, encapsulated and modular components using standards based APIs. More so, web components are reusable in almost any framework.

With the recent anouncement that support for IE11 will be dropped, polyfills won’t even be necessary; it seems like the perfect time.

Instead of applying classes, bootstrap web components could be usable like so:

<bootstrap-button></bootstrap-button>
<bootstrap-button raised></bootstrap-button>
<bootstrap-button raised warning></bootstrap-button>
<bootstrap-button raised warning large></bootstrap-button>

etc.

There is already a community effort by @morbidick : https://github.com/morbidick/bootstrap-webcomponents

Some examples of existing web component catalogs are:

If you’re interested in learning more, you can find a ton of information at:

Recommendations/tooling:

As well as these blogs:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:108
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

41reactions
Johann-Scommented, Jan 29, 2019

I agree WebComponents can suits very well to Bootstrap, but our v5 is a huge move for us (due to the removal of jQuery) so we won’t begin that in our v5, but maybe in a v6 that’s possible

12reactions
web-padawancommented, Jan 28, 2019

Thanks for starting the discussion. I recall lots of tweets of this kind under Bootstrap v5 announcements. Dropping IE11 is a good opportunity to introduce web components, too.

It has its drawbacks and edge cases, though (simple case: :slotted CSS selector is quite limited, e.g. for styling links in alerts it will require to make them direct children).

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTMLElements/smart-bootstrap - webcomponents.org
The package extends Bootstrap by adding Material Design and CSS3 Variables for Styling. The Boostrap components are rewritten from scratch and are built...
Read more >
Bootstrap · The most popular HTML, CSS, and JS library in the ...
Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to ...
Read more >
3. Styling web components with bootstrap using Constructable ...
Source code available at Source code available at https://github.com/alextech/ web - components -tutorial.
Read more >
Using bootstrap template with vanilla web components
If you need to use a large CSS framework within ShadowDOM based Web Components then you need to include that CSS in each...
Read more >
bootstrap-webcomponents - npm
Bootstrap Web Components. Latest version: 4.3.1, last published: 3 years ago. Start using bootstrap-webcomponents in your project by running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found