Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
いろいろなWeb Components #ginzajs
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
tiwu
May 22, 2019
Technology
590
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
いろいろなWeb Components #ginzajs
Ginza.js#1
で登壇した資料です。
https://web-components-sample.netlify.com/
tiwu
May 22, 2019
More Decks by tiwu
See All by tiwu
Eleventy で SSG
tiwu_dev
2
740
Eleventy - 11ty
tiwu_dev
0
150
Install for PWA
tiwu_dev
0
3.8k
App Shortcuts
tiwu_dev
0
950
Web Vitals
tiwu_dev
0
90
Web Share API
tiwu_dev
0
3.9k
Badge in Background
tiwu_dev
0
110
PWAとCache API #frontkansai
tiwu_dev
5
4.7k
Web Componentsとlit-element #frontkansai
tiwu_dev
2
3.9k
Other Decks in Technology
See All in Technology
Optunaの最新リリースv5.0について
pfn
PRO
0
130
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
200
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
260
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
120
~最速でビジネスインパクトを創出する~ Sansanのデータ基盤と活用事例
sansantech
PRO
0
110
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.5k
freeeにおける AI を用いた ブラウザ動作確認の自動化の取り組み
freee
PRO
0
120
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
300
Let's Change Our World—Again
snoozer05
PRO
4
310
古い指輪から広がった JAVA コミュニティ とのつながり
yamad
0
140
AI時代のGraphQL
joere
1
310
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
190
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
370
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
640
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
Embracing the Ebb and Flow
colly
88
5.2k
Six Lessons from altMBA
skipperchong
29
4.5k
Designing Experiences People Love
moore
143
24k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Transcript
いろいろなWeb Components Wataru Taguchi
アジェンダ - 自己紹介 - Web Componentsとは - メリット - いろいろなWeb
Components - 事例 - Q&A - まとめ
自己紹介 # Wataru Taguchi - GameWith Front End Engineer -
PWAとかWeb Componentsとかパフォーマンス チューニングが好き - @tiwu_official - FF14, Beer, Kyoto Animation
Web Componentsとは Vanilla JS、HTML、CSS を使用して 再利用可能なコンポーネントを作成する仕組み
- ライブラリに依存せずコンポーネントを作成できる - ビルド作業はない - どんなサイトでも動く - Scoped CSSが書ける -
命名ルール地獄からの解放 メリット
- カスタム要素 - 新しくHTMLタグを作成する - Shadow DOM - DOMを隠すことができる Web
Componentsを構成する技術
https://web-components-sample.netlify.com/ デモ
シンプルなボタン
シンプルなボタン text属性を利用し表示 cssとHTMLをまとめて配布する
シンプルなボタン
シンプルなボタン slotを利用して表示 imgやpやspanとか利用できる
遷移に使ってみたり
遷移に使ってみたり blue-buttonを利用してaでラップする 遷移先とテキストは属性を使って渡す
任意の処理するボタンにしてみたり
任意の処理するボタンにしてみたり ロジックも閉じ込めて配布する
条件分岐いれてみたり
条件分岐いれてみたり 多彩な振る舞いのコンポーネントも作 れる
- https://www.youtube.com/ - https://voice.ameba.jp/ - https://support.pairs.lv/hc/ja/ - 日経電子版(現在リニューアル中) 事例
Q : 対応ブラウザは? A : Edge以外大丈夫 Q&A
Q : Edgeどうすれば・・? A : Chromiumベースになるから大丈夫だろう・・・ Q&A
Q : クライアントサイドでレンダリングされるということは SEOが・・・ A : Google I/Oで最新Chromiumレンダリングエンジンを サポートすることが発表されたから大丈夫 Q&A
- ライブラリに依存せずコンポーネントが作れる - Scoped CSSが書ける - カスタム要素とShadow DOM - 静的なコンポーネントなら簡単に作れる
- 結構大手のサイトで使われている まとめ
Web Componentsはいいぞ
ご清聴ありがとうございました