Search

Nalezeno "web components": 41

An Approach to Lazy Loading Custom Elements


We’re fans of Custom Elements around here. Their design makes them particularly amenable to lazy loading, which can be a boon for performance. Inspired by a colleague’s experiments, I recently set about writing a simple auto-loader: Whenever a custom … An Approach to Lazy Loading...

Using Web Components With Next (or Any SSR Framework)


In my previous post we looked at Shoelace, which is a component library with a full suite of UX components that are beautiful, accessible, and — perhaps unexpectedly — built with Web Components. This means they can be used … Using Web Components With Next (or Any SSR Framework) originally...

Introducing Shoelace, a Framework-Independent Component-Based UX Library


This is a post about Shoelace, a component library by Cory LaViska, but with a twist. It defines all your standard UX components: tabs, modals, accordions, auto-completes, and much, much more. They look beautiful out of the … Introducing Shoelace, a Framework-Independent Component-Based...

Building Interoperable Web Components That Even Work With React


Those of us who’ve been web developers more than a few years have probably written code using more than one JavaScript framework. With all the choices out there — React, Svelte, Vue, Angular, Solid — it’s all but inevitable. One … Building Interoperable Web Components That Even...

Creating Native Web Components


Learn how to create and use native web components with the Minze JavaScript framework. The post Creating Native Web Components appeared first on Codrops

Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think


We’ve discussed a lot about the internals of using CSS in this ongoing series on web components, but there are a few special pseudo-elements and pseudo-classes that, like good friends, willingly smell your possibly halitotic breath before you go … Web Component Pseudo-Classes...

Context-Aware Web Components Are Easier Than You Think


Another aspect of web components that we haven’t talked about yet is that a JavaScript function is called whenever a web component is added or removed from a page. These lifecycle callbacks can be used for many things, including making … Context-Aware Web Components Are Easier Than You Think...

Spicy Sections


What if HTML had “tabs”? That would be cool, says I. Dave has been spending some of his time and energy, along with a group of “Tabvengers” from OpenUI, on this. A lot of research leads to a bit …

Using Web Components in WordPress is Easier Than You Think


Now that we’ve seen that web components and interactive web components are both easier than you think, let’s take a look at adding them to a content management system, namely WordPress. There are three major ways we can add them. … The post Using Web Components in WordPress is Easier Than...

Awesome Standalone (Web Components)


In his last An Event Apart talk, Dave made a point that it’s really only just about right now that Web Components are becoming a practical choice for production web development. For example, it has only been about a year … The post Awesome Standalone (Web Components) appeared first...

Links on Web Components


How we use Web Components at GitHub — Kristján Oddsson talks about how GitHub is using web components. I remember they were very early adopters, and it says here they released a <relative-time> component in 2014! Now they’ve got a … The post Links on Web Components appeared...

Interactive Web Components Are Easier Than You Think


In my last article, we saw that web components aren’t as scary as they seem. We looked at a super simple setup and made a zombie dating service profile, complete with a custom <zombie-profile> element. We reused the element … The post Interactive Web Components Are Easier Than...

Web Components Are Easier Than You Think


When I’d go to a conference (when we were able to do such things) and see someone do a presentation on web components, I always thought it was pretty nifty (yes, apparently, I’m from 1950), but it always seemed complicated … The post Web Components Are Easier Than You Think appeared first...

Responsible Web Applications


Joy Heron bought a cool domain name and published an article there: Luckily, with modern HTML and CSS, we can create responsive and accessible web apps with relative ease. In my years of doing software development, I have learned some … The post Responsible Web Applications appeared first...

Styling Web Components


Nolan Lawson has a little emoji-picker-element that is awfully handy and incredibly easy to use. But considering you’d probably be using it within your own app, it should be style-able so it can incorporated nicely anywhere. How to allow … The post Styling Web Components appeared first...

How You Might Build a Modern Day Webring


I’m sure different people picture different things when they think about webrings, so let me clarify what I picture. I see an element on a website that: Signifies this site is part of a webring Allows you to move to the next or previous site of the webring Maybe has other functionality like...

The failed promise of Web Components


Lea has some words: Perusing the components on webcomponents.org fills me with anxiety, and I’m perfectly comfortable writing JS — I write JS for a living! What hope do those who can’t write JS have? Using a custom element from the directory often needs to be preceded by a ritual of...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace