Search

Nalezeno "components": 252

Recreating MDN’s Truncated Text Effect


It’s no secret that MDN rolled out a new design back in March. It’s gorgeous! And there are some sweet CSS-y gems in it that are fun to look at. One of those gems is how card components handle truncated … Recreating MDN’s Truncated Text Effect originally published...

React Hooks: The Deep Cuts


Hooks are reusable functions. They allow you to use state and other features (e.g. lifecycle methods and so on) without writing a class. Hook functions let us “hook into” the React state lifecycle using functional components, allowing us to manipulate … React Hooks: The Deep Cuts originally...

Samsung Launches ‘Space Tycoon’ Metaverse Experience


Electronics giant Samsung has announced the launch of Space Tycoon, a metaverse-based experience built as part of the Roblox world. The gaming metaverse, which is directed to entertain Gen Z users, will feature a world in which Samsung products can be constructed by picking their fundamental...

Collective #719


Bun * Building tabs in Web Components * Body Margin 8px * Preline The post Collective #719 appeared first on Codrops

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...

Dialog Components: Go Native HTML or Roll Your Own?


As the author of a library called AgnosticUI, I’m always on the lookout for new components. And recently, I decided to dig in and start work on a new dialog (aka modal) component. That’s something many devs like to … Dialog Components: Go Native HTML or Roll Your Own? originally published...

Avoiding the Pitfalls of Nested Components in a Design System


When creating a component-based, front-end infrastructure, one of the biggest pain points I’ve personally encountered is making components that are both reusable and responsive when there are nested components within components. Take the following “call to action” (<CTA />… Avoiding...

Writing Strong Front-end Test Element Locators


Automated front-end tests are awesome. We can write a test with code to visit a page — or load up just a single component — and have that test code click on things or type text like a user would, … Writing Strong Front-end Test Element Locators originally published on CSS-Tricks. You should...

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...

How Do You Handle Component Spacing in a Design System?


Say you’ve got a <Card /> component. It’s highly likely it shouldn’t be butted right up against any other components with no spacing around it. That’s true for… pretty much every component. So, how do you handle component spacing in … How Do You Handle...

The CSS from-font Value Explained in 4 Demos


I was doing my Advent of UI Components, and I stumbled upon the from-font value for the text-decoration-thickness CSS property. I was curious about it, so I did a little research and I think what I found (and learned) … The CSS from-font Value Explained in 4 Demos originally published...

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...

What Were the Hottest Front-End Tools in 2021?


Another year has passed and once again I’ve had the privilege of going through the Web Tools Weekly newsletter archives from the past 12 months to hunt down the front-end tools that readers found to be the most interesting during … What Were the Hottest Front-End Tools in 2021?...

How to Build Your First Custom Svelte Transition


The Svelte transition API provides a first-class way to animate your components when they enter or leave the document, including custom Svelte transitions. By default, the transition directive uses CSS animations, which generally offer better performance and allow the browser’s … How...

The Quest 2 VR Headset Had A Hell Of A Good Holiday Season


Last holiday season the Quest 2 VR headset had gotten off to a rocky start, with reviewers praising the virtual reality headset’s tech, but panning its mandatory Facebook integration. This year, with the Facebook restrictions relaxed, Xbox and PlayStation consoles being hard to find, and...

How to Make a Component That Supports Multiple Frameworks in a Monorepo


Your mission — should you decide to accept it — is to build a Button component in four frameworks, but, only use one button.css file! This idea is very important to me. I’ve been working on a component library called … How to Make a Component That Supports Multiple Frameworks in a Monorepo...

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