並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 41件

新着順 人気順

WebComponentsの検索結果1 - 40 件 / 41件

WebComponentsに関するエントリは41件あります。 javascriptarticleJavaScript などが関連タグです。 人気エントリには 『Macaron | Visual component editor for Web development』などがあります。
  • Macaron | Visual component editor for Web development

    Macaron is an open-source UI design tool to create and maintain Web Components.

      Macaron | Visual component editor for Web development
    • HTML 全体の CSS を取得して Shadow DOM に適用する

      以下のコードで HTML 全体の CSS を取得して Shadow DOM に適用することができます。 最近まで replaceSync() と adoptedStyleSheets() の存在を知らなかったのですが、 この 2つを使うと毎回 style タグを書き出すより効率的に処理できるらしい。 これまで Shadow DOM の中に link タグを書くような方法を使っていたのですが、link タグだと最適化がしにくい問題があります。 CSS はインライン化したほうが高速なので、その時にも同じように使える方法が欲しかったのですが、この方法でいけるとわかりました。 document.styleSheets も知らなかった…。 function getGlobalCSS() { let cssText = ""; for (const stylesheet of document.sty

      • Shadow DOMとCSSの現状

        2024-02-27 DOMDOMトークス #1

          Shadow DOMとCSSの現状
        • HTML だけで Shadow DOM を構築するための宣言型 Shadow DOM

          宣言型 Shadow DOM は `<template>` 要素を使用して Shadow DOM を構築する方法です。宣言型 Shadow DOM を使用することで、従来の JavaScript を使用した Shadow DOM の構築方法と比較して、サーバーサイドレンダリング(SSR)に対応しているため、パフォーマンスの向上や SEO 対策に期待されます。 Shadow DOM は Web Components を構成する 3 つの技術の 1 つです。Shadow DOM はコンポーネントのカプセル化を実現します。Shadow DOM で定義されたスタイルは Shadow DOM の外部に影響を与えず、また外部のスタイルの影響を受けません。 Shadow DOM は再利用可能なコンポーネントを構築するために重要な技術ですが、従来は JavaScript を使用しなければ Shadow D

            HTML だけで Shadow DOM を構築するための宣言型 Shadow DOM
          • BASEのノーコードはどのように実現されているのか? - BASEプロダクトチームブログ

            基盤チームの右京です。 BASE ではショップのデザインを誰でも簡単にできるような、いわゆるノーコードな機能を提供しています。 デザイン | BASE (ベイス) ネットショップを無料で簡単に作成 この記事では、そんなノーコードなシステムの裏側について、簡単にですが解説しています。 ショップページ配信の基盤システム ノーコードの前にまず BASE のショップページ(ShopFront と呼んでいます)がどのようなシステムかを知っておく必要があります。BASE のショップページは特定の URL にアクセスすると必要なデータをデータベースから取得し、テンプレートエンジンを使ってサーバーのプログラムで HTML を生成して返す、よくある伝統的な Web ページとして実装されています。ただし、ショップ毎にページのデザインは全く異なるため、1 つの固定のテンプレートを利用しているわけではなく、ショッ

              BASEのノーコードはどのように実現されているのか? - BASEプロダクトチームブログ
            • 進化し続けるフロントエンド技術「Web Components」はライブラリ不要!――気軽に始めて開発の生産性を高めよう

              再利用可能なUI部品を組み合わせて画面を構築していくのは、多くのGUIアプリケーションにとって効率の良い開発手法です。ブラウザ向けにも多くのライブラリが再利用性を担保するための工夫を重ねてきましたが、実はブラウザ自身が再利用可能なUI部品を作成するための機能を備えていることはご存知でしょうか。本記事では、Web Componentsという名称で総称されるブラウザの機能について解説します。 対象読者 AngularやReactなどのフレームワークに頼らずに再利用可能なHTMLやCSSを整備したいマークアップエンジニア AngularやReactなどのフレームワークとWeb Componentsを併用する利点を学びたいJavaScriptエンジニア 前提環境 筆者の検証環境は以下の通りです。 macOS Monterey 12.3.1 Google Chrome 100.0.4896.127

                進化し続けるフロントエンド技術「Web Components」はライブラリ不要!――気軽に始めて開発の生産性を高めよう
              • https://engineering.mercari.com/en/blog/entry/20221207-web-design-system-migrating-web-components-to-react/

                  https://engineering.mercari.com/en/blog/entry/20221207-web-design-system-migrating-web-components-to-react/
                • GitHub - peterpeterparker/stylo: Another kind of rich text editor

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - peterpeterparker/stylo: Another kind of rich text editor
                  • SvelteでWeb Componentsを作成し、CDNから配布して使う

                    lib/Counter.svelteのファイル先頭に<svelte:options tag="my-counter" />を追加してコンポーネントをカスタム要素としてコンパイルするようにします。 tagで指定した文字列が、Web Componentsの名前となります。 <svelte:options tag="my-counter" /> <script lang="ts"> let count: number = 0 const increment = () => { count += 1 } </script> <button on:click={increment}> Clicks: {count} </button> <style> button { font-family: inherit; font-size: inherit; padding: 1em 2em; color:

                      SvelteでWeb Componentsを作成し、CDNから配布して使う
                    • GitHub - Polight/lego: 🚀 Low-Tech Web-Components Made Lightweight & Future-Proof.

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        GitHub - Polight/lego: 🚀 Low-Tech Web-Components Made Lightweight & Future-Proof.
                      • Plain Vanilla

                        An explainer for web development using only vanilla techniques. No tools, no frameworks — just HTML, CSS, and JavaScript. About this site This is an overview of the major techniques used to make web sites and web applications without making use of build tools or frameworks, with just an editor, a browser, and web standards. Specifically, that means these topics: Components The use of Web Component

                        • GitHub - frameable/el: Minimal JavaScript application framework / WebComponents base class

                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                            GitHub - frameable/el: Minimal JavaScript application framework / WebComponents base class
                          • Under the hood of MDN's new frontend

                            Last year, we launched a new frontend for MDN. The most noticeable changes were adjustments to our styles; we simplified and unified the MDN design across all of our pages. In truth, the biggest changes were not reader-visible, but rather in the overhauled code that powers our frontend. This post describes what we've done, the technologies we chose, and why we did it at all. MDN's architecture To

                            • Enhance

                              Get productive Enhance ships with everything you need to build a production ready app. File-based routing Organize your pages as easily as a desktop folder. Database-backed APIs Access and store data with simple JavaScript functions. SSR composable HTML Custom Elements Build reusable components with HTML and scoped CSS. Web Component progressive enhancement Add client-side interaction just where y

                              • Printing music with CSS grid

                                Printing music with CSS Grid Too often have I witnessed the improvising musician sweaty-handedly attempting to pinch-zoom an A4 pdf on a tiny mobile screen at the climax of a gig. We need fluid and responsive music rendering for the web! Stephen Band 24 Apr 2024 Update 20 Oct 2025: The latest version of Scribe features the <scribe-music> custom element. Use it to print music in your own web page.

                                  Printing music with CSS grid
                                • よくある2ペインのレイアウト用コンポーネントを作りつつ、Web Componentsの仕組みを理解する|masuidrive

                                  よくある2ペインのレイアウト用コンポーネントを作りつつ、Web Componentsの仕組みを理解する Web Componentsを一言で説明すると「HTML/CSSが独立したカスタムタグを作れる仕組み」です。理解するには、まずは素のJavascriptだけでよくある部品を作ってみることが一番だと思います。 多くのサンプルではボタンやアイコンなどの部品を作りますが、今回はflexboxを使ったレイアウト定義のコンポーネントを作ってみます。この部分にはちょっとしたハマりどころがあるのでちょうど良い練習になります。 もう一つハマりやすいのはフォーム部品ですが、これはまた後日書きます。 この記事の前に 「今なら使えるWebComponents」を軽くでも読んでおいてもらえると嬉しいです。 2ペインのレイアウトを考える最初にWebアプリでよくある、左にナビゲーション、右にコンテンツを置く2ペイン

                                    よくある2ペインのレイアウト用コンポーネントを作りつつ、Web Componentsの仕組みを理解する|masuidrive
                                  • 2023-10-16のJS: Lit 3、Chrome 118、Zodの作り方

                                    JSer.info #665 - Web ComponentsライブラリであるLit 3.0がリリースされました。 Lit Launch Day: Lit 3.0, Labs graduations, a compiler and more! – Lit Lit 3 upgrade guide – Lit Lit 3では、IE11のサポート終了、最小の実行環境をES2021をサポートしてるブラウザへ変更が行われています。 Lit 2.0で非推奨となったAPIの削除、Stage 3のDecoratorの対応なども行われています。 また、新しいLitテンプレートコンパイラーの公開、Preact Signalsを統合するパッケージも公開されています。 Chrome 118がリリースされました。 New in Chrome 118 - Chrome for Developers Chrome 11

                                      2023-10-16のJS: Lit 3、Chrome 118、Zodの作り方
                                    • The Design System Ecosystem

                                      What does a mature, end-to-end design system look like in a big, complex organization? What are all the moving pieces, and how do they hang together as a well-considered architecture? What’s required and what’s optional? Hold onto your butts, because we’re going to go deep on this one. Let’s start here: a design system’s relationship to digital products can be boiled down like so: There’s a design

                                        The Design System Ecosystem
                                      • Web Components Will Outlive Your JavaScript Framework | jakelazaroff.com

                                        If you’re anything like me, when you’re starting a project, there’s a paralyzing period of indecision while you try to figure out how to build it. In the JavaScript world, that usually boils down to picking a framework. Do you go with Ol’ Reliable, a.k.a. React? Something slimmer and trendier, like Svelte or Solid? How about kicking it old school with a server-side framework and htmx? When I was w

                                          Web Components Will Outlive Your JavaScript Framework | jakelazaroff.com
                                        • SvelteではじめるWeb Components開発 - Qiita

                                          はじめに あまり知られていないかもしれませんが、Svelteを使ってWeb Componentsを開発することができます。 本記事ではSvelteを使ってWeb Componentsを開発するやり方を紹介したいと思います。 Web Componentsとは webcomponents.orgから引用 Web Componentsは、WebプラットフォームAPIのセットで、WebページやWebアプリケーションで使用する、新しいカスタム、再利用可能な、カプセル化されたHTMLタグを作成することを可能にします。カスタムコンポーネントとウィジェットはWeb Componentsの標準に基づいて構築され、モダンブラウザで動作し、HTMLで動作するあらゆるJavaScriptライブラリやフレームワークで使用することができます。 Web Componentsは、既存のWeb標準をベースにしています。We

                                            SvelteではじめるWeb Components開発 - Qiita
                                          • WebComponentsとは何だったのか?基礎から再入門する - Qiita

                                            自ブログからの引用です。 出典: https://seeklogo.com/ 自ブログからの転載です。 初めに 以前から存在し、ネーミングからモダンフロントの近未来を感じさせるWebComponentsに関して、基本的な技術の概観と2021年現在に考えて何を解決してくれる技術なのかを調査してみました。 概要 WebComponentsとはでよくある定義が、Web標準技術を利用して再利用可能なUIコンポーネントを作成する技術で、以下の3つの技術から構成されます。 カスタム要素 Shadow DOM HTML テンプレート イメージとして WebComponents=カスタム要素 と思っている方も多いと思いますが、単なる要素としてではなく、コンポーネントとして再利用可能なUIを定義するために必要な機能が補完される物と考えています。 要素技術の解説 3つの要素技術に関して、それぞれ概要をみていき

                                              WebComponentsとは何だったのか?基礎から再入門する - Qiita
                                            • lamplightdev - Streaming HTML out of order without JavaScript

                                              Updated Sep 29 2024 to add further information about support in Safari, and updated information about support in Firefox. Let's start with a demo: https://ooo.lamplightdev.workers.dev: This is a simple page that renders a list of 10 items. Try it with and without JavaScript enabled in your browser. There's a few things to notice: The 'app shell' renders first - you see the header and the footer, b

                                              • ElementInternals and Form-Associated Custom Elements

                                                In Safari Technology Preview 162 we enabled the support for ElementInternals and the form-associated custom elements by default. Custom elements is a feature which lets web developers create reusable components by defining their own HTML elements without relying on a JavaScript framework. ElementInternals is a new addition to custom elements API, which allows developers to manage a custom element’

                                                  ElementInternals and Form-Associated Custom Elements
                                                • Declarative Shadow DOMを利用したWeb ComponentsをSSR・CSRで実現する

                                                  Interop 2024のFocus Areasの1つに、Web Componentsがあります。このWeb Componentsに関連する機能として、Declarative Shadow DOMやsetHTMLUnsafe、parseHTMLUnsafeが2024年に入って新たにBaselineに追加されました。 これらの機能・Web APIは、サーバーサイドでの宣言的なShadow DOMの構築によるJavaScriptが無効な環境でも動作するWeb Componentsの実現や、クライアントサイドでの動的なDeclarative Shadow DOMの追加によるWeb Componentsの利用範囲の拡大に寄与してくれています。 今回は、このような盛り上がりを見せるWeb Componentsが、Declarative Shadow DOMやsetHTMLUnsafe・parseHT

                                                    Declarative Shadow DOMを利用したWeb ComponentsをSSR・CSRで実現する
                                                  • GitHub - LavaMoat/LavaDome: Secure DOM trees isolation and encapsulation leveraging ShadowDOM

                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                      GitHub - LavaMoat/LavaDome: Secure DOM trees isolation and encapsulation leveraging ShadowDOM
                                                    • Webおじさん「WebComponentsはいいぞ」

                                                      🎉 はじめに なんか昔から聞いたことあるけど、オワコンとか言われてるらしいけど、あんまりみんな使ってないけど、、、 そんなWebComponentsについて、今更ながら調べてみました。 調べてみると、とても便利で使いやすい技術だったので、今回はWebComponentsについてまとめてみました。 (筆者はぴちぴちの20代です) 🤔 WebComponentsとは かんたんに カスタムエレメントを作れちゃう技術です。 VueやReactでいうところのコンポーネントのようなものですね。 というか、JavaScriptライブラリのコンポーネント機能をブラウザの標準機能として実装したものです。 もうちょっと詳しく 使い方はVueやReactのコンポーネントと似ていますが、コンポーネントの作り方は少し特殊です。 WebComponentsは以下の3つの技術を組み合わせて構成されています。 カスタ

                                                        Webおじさん「WebComponentsはいいぞ」
                                                      • Minze

                                                        SimpleDive right in by scaffolding a project, installing from npm or using a CDN link.

                                                          Minze
                                                        • HTML Web Components

                                                          I think the word “component” in “web components” confused a lot of people — at least it did me. “Web components” sounded like the web platform’s equivalent to “React components”. JSX had <MyComponent> and now the web had <my-component>. But when you try building web components the same way you build React components, it’s easy to get frustrated and give up because web components don’t work like Re

                                                            HTML Web Components
                                                          • HTML web components

                                                            Web components have been around for quite a while, but it feels like they’re having a bit of a moment right now. It turns out that the best selling point for web components was “wait and see.” For everyone who didn’t see the benefit of web components over being locked into a specific framework, time is proving to be a great teacher. It’s not just that web components are portable. They’re also web

                                                              HTML web components
                                                            • i-html, an inline-html import element

                                                              i-html is a drop in tag that allows for dynamically importing html, inline. It's a bit like an <iframe>, except the html gets adopted into the page. You might have used something similar before, it might seem familiar to other techniques such as hotwired turbo or similar. You might have even used an element very close to this one, for example the popular include-fragment-element by GitHub. This el

                                                              • Web Components are not Framework Components — and That’s Okay • Lea Verou

                                                                Disclaimer: This post expresses my opinions, which do not necessarily reflect consensus by the whole Web Components community. A blog post by Ryan Carniato titled “Web Components Are Not the Future” has recently stirred a lot of controversy. A few other JS framework authors pitched in, expressing frustration and disillusionment around Web Components. Some Web Components folks wrote rebuttals, whil

                                                                  Web Components are not Framework Components — and That’s Okay • Lea Verou
                                                                • 🌐 WebPDF.pro ˂📄˃ ⸬ ˂pdf-file˃ ˂pdf-page˃ web components

                                                                  monthly yearly 📄 Read-only Add WebPDF.pro interactive pages to your websites. FREE 📧 📚 forum support 📄 read-only pages 💎 vector renderer 🔠 text & link layer 🌐 World-wide Deploy WebPDF.pro on websites/apps with live support! 💳 🧑🏻‍🚀 live/call support 📝 form fill & save 💎 vector renderer ✨ hi-fi renderer 1️⃣ Site/App Use WebPDF.pro on 1 website/app with email support! 💳 📧 email support

                                                                    🌐 WebPDF.pro ˂📄˃ ⸬ ˂pdf-file˃ ˂pdf-page˃ web components
                                                                  • HTML with Superpowers | HTML with Superpowers

                                                                    Introduction to Web Components

                                                                    • GitHub - 11ty/webc: Single File Web Components

                                                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                        GitHub - 11ty/webc: Single File Web Components
                                                                      • 7 Web Component Tricks

                                                                        This week I finished my Frontend Masters Web Components Course. To market it celebrate that accomplishment, I wanted to share ~7 tips and tricks I’ve learned preparing my course or I feel aren’t super obvious about Web Components. 1. You can manipulate props right on a Lit element This may be something only I would do, but if you make an element with Lit that exposes its properties, you can edit t

                                                                          7 Web Component Tricks
                                                                        • Blazor Developers Can Now Create Custom Elements, Render Components from JavaScript -- Visual Studio Magazine

                                                                          News Blazor Developers Can Now Create Custom Elements, Render Components from JavaScript By David Ramel09/16/2021 Microsoft's Blazor web-dev tech received a raft of improvements in the new .NET 6 Release Candidate 1, including the ability to create custom elements, render components from JavaScript and even generate Angular and React components. Blazor, which allows for web projects coded primaril

                                                                            Blazor Developers Can Now Create Custom Elements, Render Components from JavaScript -- Visual Studio Magazine
                                                                          • Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think | CSS-Tricks

                                                                            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 talk to that potential love interest. You know, they help you out when you need

                                                                              Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think | CSS-Tricks
                                                                            • Show Baseline status on your blog posts and presentations  |  Blog  |  web.dev

                                                                              Published: October 23, 2024 In this post, learn how you can use the new <baseline-status> web component on your own site, and the Baseline logos in presentations, whenever you write or talk about web platform features. Most developers have had the experience of searching for a solution to a web development problem, finding an article that describes the perfect solution, then realizing right at the

                                                                                Show Baseline status on your blog posts and presentations  |  Blog  |  web.dev
                                                                              • Announcing Lit 2 stable release

                                                                                Today we're announcing the stable release of Lit 2. Lit 2 is a major update: it's smaller, faster and better than before, it lays the foundation for server-side rendering, and it's all wrapped up in the new lit package on npm. Lit has come a long way since April when we announced the first release candidate for Lit 2. Since then, many partners have tested the release candidates on big applications

                                                                                  Announcing Lit 2 stable release
                                                                                • Blinded By the Light DOM

                                                                                  For a while now, Web Components (which I’m not going to capitalize again, you’re welcome) have been one of those things that pop up in the general web conversation, seem intriguing, and then fade into the background again. I freely admit a lot of this experience is due to me, who is not all that thrilled with the Shadow DOM in general and all the shenanigans required to cross from the Light Side t

                                                                                    Blinded By the Light DOM

                                                                                  新着記事