{"id":7010,"date":"2026-11-30T11:14:23","date_gmt":"2026-11-30T16:14:23","guid":{"rendered":"https:\/\/ionic.io\/blog\/?p=7010"},"modified":"2026-11-30T11:14:24","modified_gmt":"2026-11-30T16:14:24","slug":"community-spotlight-stencil-5-release-candidate","status":"publish","type":"post","link":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate","title":{"rendered":"Community Spotlight: Stencil 5 Release Candidate"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>John Jenkins is a long-time Ionic user, a web-standards fan and advocate, and the community lead contributor to Stencil.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil 5 Release Candidate is here! \ud83d\ude80<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s have a look at what&#8217;s new. Stencil 5 brings a new CLI, a new bundler, CSS-only components, signals, reactive controllers, and server rendering for any framework and language. On top of that, you get a better developer experience for global styling, less boilerplate, and better testing through Vitest and Playwright. The <a href=\"https:\/\/stenciljs.com\/docs\/v5\/\" target=\"_blank\" rel=\"noopener\">updated v5 docs<\/a> are live, and they include new in-browser playgrounds.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">If you haven&#8217;t used Stencil before, start with the next section. Otherwise, skip ahead to <a href=\"#a-new-cli\">what&#8217;s new<\/a>.<\/p>\n\n\n\n<h2 id=\"quick-recap-what-is-stencil\" class=\"wp-block-heading\">Quick Recap: What Is Stencil?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil is a 10-year-old project and a web component compiler. TypeScript and JSX go in:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ src\/my-greeting.tsx\n\nimport { Component, Prop } from '@stencil\/core';\n\n@Component({ tag: 'my-greeting' })\nexport class MyGreeting {\n  @Prop() name = 'World';\n\n  render() {\n    return &lt;p>Hello, {this.name}!&lt;\/p>;\n  }\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ src\/my-greeting.tsx<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">Component<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">Prop<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;@stencil\/core&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #DCDCAA\">Component<\/span><span style=\"color: #D4D4D4\">({ <\/span><span style=\"color: #9CDCFE\">tag:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;my-greeting&#39;<\/span><span style=\"color: #D4D4D4\"> })<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">MyGreeting<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  @<\/span><span style=\"color: #DCDCAA\">Prop<\/span><span style=\"color: #D4D4D4\">() <\/span><span style=\"color: #9CDCFE\">name<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&#39;World&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">render<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #808080\">&lt;<\/span><span style=\"color: #569CD6\">p<\/span><span style=\"color: #808080\">&gt;<\/span><span style=\"color: #D4D4D4\">Hello, <\/span><span style=\"color: #569CD6\">{this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">name<\/span><span style=\"color: #569CD6\">}<\/span><span style=\"color: #D4D4D4\">!<\/span><span style=\"color: #808080\">&lt;\/<\/span><span style=\"color: #569CD6\">p<\/span><span style=\"color: #808080\">&gt;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Standard custom elements come out, like <code>&lt;my-greeting name=\"Stencil\"&gt;<\/code>. The important part of that process is the extraction of metadata, because that metadata can drive a lot of things. For example, it can produce different kinds of bundles, such as one optimized for lazy loading, one for cherry picking, and one for SSR. It can also produce docs outputs for IDEs, agents, and JSON manifests. Finally, it can generate framework wrappers that make your components feel native in things like Next.js or Angular.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With its build-first, batteries-included toolchain, Stencil is a good fit for building component libraries and design systems, and we tuned v5 with that in mind.<\/p>\n\n\n\n<h2 id=\"a-new-cli\" class=\"wp-block-heading\">A New CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>stencil init<\/code> scaffolds a project by asking what you need: output targets, a framework integration like React, Vue, or Angular, a test runner, and a CSS preprocessor. It then installs and configures whatever you pick.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"918\" data-src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-1024x918.png\" alt=\"\" class=\"wp-image-7030 lazyload\" data-srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-1024x918.png 1024w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-300x269.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-768x688.png 768w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-1536x1377.png 1536w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4.png 1562w\" data-sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/918;\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"918\" src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-1024x918.png\" alt=\"\" class=\"wp-image-7030\" srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-1024x918.png 1024w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-300x269.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-768x688.png 768w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4-1536x1377.png 1536w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-init-wizard-4.png 1562w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/noscript><figcaption class=\"wp-element-caption\"><em>The stencil init wizard<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To add something later, run <code>stencil add<\/code>. Because it shows the same choices as <code>init<\/code>, it works with any package that ships its own setup wizard. For example, <code>stencil add @stencil\/vitest<\/code> installs Vitest, guides you through a wizard, and writes its config.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>stencil migrate<\/code> updates a v4 project. More on that <a href=\"#migrating-from-v4-theres-a-tool-for-that\">below<\/a>.<\/p>\n\n\n\n<h2 id=\"four-kinds-of-components\" class=\"wp-block-heading\">Four Kinds of Components<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Design systems need more than one kind of component. For example, a badge might only need styles, while a share link might work best as a slotted <code>&lt;a&gt;<\/code> that gets extra behavior once JavaScript loads. A dropdown renders its own markup, and a complex input might want shadow DOM to keep its internals separate from the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/stenciljs.com\/docs\/v5\/component-archetypes\" target=\"_blank\" rel=\"noopener\">Component Archetypes<\/a> compares the four kinds of component you can build: CSS-only, progressively enhanced, custom elements without shadow DOM, and custom elements with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For any component that needs JavaScript, Stencil 5 moves the encapsulation options into a new <code>encapsulation<\/code> object:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ src\/my-input.tsx\n\n@Component({\n  tag: 'my-input',\n  encapsulation: { type: 'shadow' }, \/\/ or 'scoped', or 'none'\n})\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ src\/my-input.tsx<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #DCDCAA\">Component<\/span><span style=\"color: #D4D4D4\">({<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">tag:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;my-input&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">encapsulation:<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">type:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;shadow&#39;<\/span><span style=\"color: #D4D4D4\"> }, <\/span><span style=\"color: #6A9955\">\/\/ or &#39;scoped&#39;, or &#39;none&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">})<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If you leave it out, the component renders into the light DOM with no encapsulation, and components without shadow DOM still get <a href=\"https:\/\/stenciljs.com\/docs\/v5\/slots\" target=\"_blank\" rel=\"noopener\"><code>&lt;slot&gt;<\/code>s<\/a>. <code>scoped<\/code> and <code>none<\/code> components can also pick or override which <a href=\"https:\/\/stenciljs.com\/docs\/v5\/config-compat#lightdompatches\" target=\"_blank\" rel=\"noopener\">light DOM <code>patches<\/code><\/a> they need, per component.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil 5 also introduces new <code>globalStyle<\/code> and <code>globalStyleUrl<\/code> properties on your component definition:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>@Component({\n  tag: 'my-input',\n  style: `:host { display: block; }`,\n  \/\/ ^ style your component internals after it's loaded\n  globalStyle: `my-input { min-height: 20px; }`\n  \/\/ ^ pre-style your component or its contents before it's loaded\n  \/\/ to help with FOUC, CLS and progressive enhancement\n})<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #DCDCAA\">Component<\/span><span style=\"color: #D4D4D4\">({<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">tag:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;my-input&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">style:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">`:host { display: block; }`<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/\/ ^ style your component internals after it&#39;s loaded<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">globalStyle:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">`my-input { min-height: 20px; }`<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/\/ ^ pre-style your component or its contents before it&#39;s loaded<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/\/ to help with FOUC, CLS and progressive enhancement<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">})<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/stenciljs.com\/docs\/v5\/global-styles#co-locating-styles-with-a-component\" target=\"_blank\" rel=\"noopener\">Read more about co-locating styles with your components<\/a>.<\/p>\n\n\n\n<h3 id=\"css-only-components\" class=\"wp-block-heading\">CSS-Only Components<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When components don&#8217;t need JavaScript at all, like a badge, a divider, or a layout grid, you can write one as a stylesheet. A <code>\/** @component *\/<\/code> comment turns a rule into a component:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/* src\/my-badge.css *\/\n\/**\n * @component\n * A small label for a status or count.\n *\/\nmy-badge {\n  \/** The badge's background color. *\/\n  --badge-color: #e0e0e0;\n  display: inline-flex;\n  background: var(--badge-color);\n\n  \/** Variant (the enum type attribute is auto-documented) *\/\n  &amp;&#91;variant='success'&#93; {\n    --badge-color: #c8f0d0;\n  }\n  &amp;&#91;variant='danger'&#93; {\n    --badge-color: #f8d0d0;\n  }\n\n  \/** Pill (the boolean type attribute is auto-documented) *\/\n  &amp;&#91;pill&#93; {\n    border-radius: 999px;\n  }\n\n  \/** Icon (slots are auto-documented) *\/\n  > &#91;slot='icon'&#93; {\n    width: 1em;\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/* src\/my-badge.css *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/**<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\"> * <\/span><span style=\"color: #569CD6\">@component<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\"> * A small label for a status or count.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\"> *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">my<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #9CDCFE\">badge<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/** The badge&#39;s background color. *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  --<\/span><span style=\"color: #9CDCFE\">badge<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #C8C8C8\">color<\/span><span style=\"color: #D4D4D4\">: #<\/span><span style=\"color: #9CDCFE\">e0e0e0<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #C8C8C8\">display<\/span><span style=\"color: #D4D4D4\">: <\/span><span style=\"color: #9CDCFE\">inline<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #9CDCFE\">flex<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #C8C8C8\">background<\/span><span style=\"color: #D4D4D4\">: <\/span><span style=\"color: #569CD6\">var<\/span><span style=\"color: #D4D4D4\">(--<\/span><span style=\"color: #9CDCFE\">badge<\/span><span style=\"color: #D4D4D4\">-color);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/** Variant (the enum type attribute is auto-documented) *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &amp;&#91;<\/span><span style=\"color: #9CDCFE\">variant<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">&#39;success&#39;<\/span><span style=\"color: #D4D4D4\">&#93; {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    --<\/span><span style=\"color: #9CDCFE\">badge<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #C8C8C8\">color<\/span><span style=\"color: #D4D4D4\">: #<\/span><span style=\"color: #9CDCFE\">c8f0d0<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &amp;&#91;<\/span><span style=\"color: #9CDCFE\">variant<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">&#39;danger&#39;<\/span><span style=\"color: #D4D4D4\">&#93; {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    --<\/span><span style=\"color: #9CDCFE\">badge<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #C8C8C8\">color<\/span><span style=\"color: #D4D4D4\">: #<\/span><span style=\"color: #9CDCFE\">f8d0d0<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/** Pill (the boolean type attribute is auto-documented) *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &amp;&#91;<\/span><span style=\"color: #9CDCFE\">pill<\/span><span style=\"color: #D4D4D4\">&#93; {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">border<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #C8C8C8\">radius<\/span><span style=\"color: #D4D4D4\">: 999<\/span><span style=\"color: #9CDCFE\">px<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #6A9955\">\/** Icon (slots are auto-documented) *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &gt; &#91;<\/span><span style=\"color: #9CDCFE\">slot<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">&#39;icon&#39;<\/span><span style=\"color: #D4D4D4\">&#93; {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C8C8C8\">width<\/span><span style=\"color: #D4D4D4\">: 1<\/span><span style=\"color: #9CDCFE\">em<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>&lt;my-badge&gt;<\/code> is never registered as a custom element, so there is no JS runtime to load. Stencil still adds it to your JSX types and generated docs, and <a href=\"https:\/\/stenciljs.com\/docs\/v5\/css-only#getting-the-styles-onto-the-page\" target=\"_blank\" rel=\"noopener\">ships its CSS with your global styles<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to <a href=\"https:\/\/dev.to\/stuffbreaker\/css-only-custom-elements-go6\" target=\"_blank\" rel=\"noopener\">Burton Smith&#8217;s initial idea<\/a> for CSS-only custom elements. It made complete sense, so we went all in.<\/p>\n\n\n\n<h3 id=\"new-shadow-dom-features\" class=\"wp-block-heading\">New Shadow DOM Features<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For components that do use shadow DOM, more of the platform&#8217;s shadow root options are now supported.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Scoped custom element registries<\/strong> let two versions of a library define the same tag on one page, each in its own part of it. They now have first-class support. See <a href=\"https:\/\/stenciljs.com\/docs\/v5\/scoped-registries\" target=\"_blank\" rel=\"noopener\">Scoped Registries<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>referenceTarget<\/code><\/strong> forwards a <code>&lt;label for&gt;<\/code> or <code>aria-labelledby<\/code> that points at your component to an element inside its shadow root. So far only <a href=\"https:\/\/caniuse.com\/wf-referencetarget\" target=\"_blank\" rel=\"noopener\">Chromium-based browsers support this<\/a>, starting with Chrome and Edge 152.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>mode: 'closed'<\/code><\/strong> disables access to <code>element.shadowRoot<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>clonable<\/code><\/strong> keeps the shadow root when the host is deep-cloned with <code>cloneNode(true)<\/code>. Without it you get an empty shell.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>serializable<\/code><\/strong> includes the shadow root when you serialize the host with <code>getHTML({ serializableShadowRoots: true })<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>delegatesFocus<\/code><\/strong> and <strong><code>slotAssignment<\/code><\/strong> sit alongside them in the same object.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>@Component({\n  tag: 'my-input',\n  encapsulation: {\n    type: 'shadow',\n    referenceTarget: 'field',\n    mode: 'closed',\n    clonable: true,\n  },\n})\nexport class MyInput {\n  render() {\n    return &lt;input id=\"field\" \/>;\n  }\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #DCDCAA\">Component<\/span><span style=\"color: #D4D4D4\">({<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">tag:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;my-input&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">encapsulation:<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">type:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;shadow&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">referenceTarget:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;field&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">mode:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;closed&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">clonable:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">true<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  },<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">})<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">MyInput<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">render<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #808080\">&lt;<\/span><span style=\"color: #569CD6\">input<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">id<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">&quot;field&quot;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #808080\">\/&gt;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Form-associated components no longer need a flag, because using the <code>@AttachInternals()<\/code> decorator sets that up for you.<\/p>\n\n\n\n<h2 id=\"signals\" class=\"wp-block-heading\">Signals<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil 5 includes <a href=\"https:\/\/github.com\/preactjs\/signals\" target=\"_blank\" rel=\"noopener\">Preact Signals<\/a>. A signal holds a value outside any one component, so several components can share it. Put a signal in JSX and Stencil updates that one text node when it changes, without rendering the component again:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ src\/count.ts\n\nimport { signal } from '@stencil\/core\/signals';\n\nexport const count = signal(0);\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ src\/count.ts<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">signal<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;@stencil\/core\/signals&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">const<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4FC1FF\">count<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">signal<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ src\/my-counter.tsx\n\nimport { Component } from '@stencil\/core';\nimport { count } from '.\/count';\n\n@Component({ tag: 'my-counter' })\nexport class MyCounter {\n  render() {\n    return &lt;button onClick={() => count.value++}>{count}&lt;\/button>;\n  }\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ src\/my-counter.tsx<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">Component<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;@stencil\/core&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">count<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;.\/count&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #DCDCAA\">Component<\/span><span style=\"color: #D4D4D4\">({ <\/span><span style=\"color: #9CDCFE\">tag:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;my-counter&#39;<\/span><span style=\"color: #D4D4D4\"> })<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">MyCounter<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">render<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #808080\">&lt;<\/span><span style=\"color: #569CD6\">button<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">onClick<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #569CD6\">{<\/span><span style=\"color: #D4D4D4\">() <\/span><span style=\"color: #569CD6\">=&gt;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">count<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">value<\/span><span style=\"color: #D4D4D4\">++<\/span><span style=\"color: #569CD6\">}<\/span><span style=\"color: #808080\">&gt;<\/span><span style=\"color: #569CD6\">{<\/span><span style=\"color: #9CDCFE\">count<\/span><span style=\"color: #569CD6\">}<\/span><span style=\"color: #808080\">&lt;\/<\/span><span style=\"color: #569CD6\">button<\/span><span style=\"color: #808080\">&gt;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A new <code>@Effect()<\/code> decorator, also from <code>@stencil\/core\/signals<\/code>, runs a method again whenever a signal it reads changes.<\/p>\n\n\n\n<h3 id=\"signal-backed-components\" class=\"wp-block-heading\">Signal-Backed Components<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Turn on <code>signalBacking<\/code> in your config and Stencil also stores every <code>@Prop()<\/code> and <code>@State()<\/code> in a signal. You don&#8217;t have to change your component code. As a result, your components&#8217; props become subscribable from outside. Other components and Preact Signals code can then react to them directly, and frameworks can follow along without listening for events or watching attributes:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ my-app\/src\/doubled-volume.ts\n\nimport { getSignal, computed } from '@stencil\/core\/signals';\n\n\/\/ &lt;my-slider> has a `@Prop() value: number`\nconst sliderEl = document.querySelector('my-slider');\nawait sliderEl.componentOnReady();\n\nconst volume = getSignal&lt;number>(sliderEl, 'value');\nexport const doubledVolume = computed(() => volume.value * 2);\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ my-app\/src\/doubled-volume.ts<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">getSignal<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">computed<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;@stencil\/core\/signals&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/ &lt;my-slider&gt; has a `@Prop() value: number`<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">const<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4FC1FF\">sliderEl<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">document<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">querySelector<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;my-slider&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">await<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">sliderEl<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">componentOnReady<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">const<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4FC1FF\">volume<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">getSignal<\/span><span style=\"color: #D4D4D4\">&lt;<\/span><span style=\"color: #4EC9B0\">number<\/span><span style=\"color: #D4D4D4\">&gt;(<\/span><span style=\"color: #9CDCFE\">sliderEl<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">&#39;value&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">const<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4FC1FF\">doubledVolume<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">computed<\/span><span style=\"color: #D4D4D4\">(() <\/span><span style=\"color: #569CD6\">=&gt;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">volume<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">value<\/span><span style=\"color: #D4D4D4\"> * <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/stenciljs.com\/docs\/v5\/signals\" target=\"_blank\" rel=\"noopener\">Signals guide<\/a> has live examples.<\/p>\n\n\n\n<h2 id=\"reactive-controllers\" class=\"wp-block-heading\">Reactive Controllers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil 5 has much better interop with <a href=\"https:\/\/lit.dev\/docs\/composition\/controllers\/\" target=\"_blank\" rel=\"noopener\">reactive controllers<\/a>, which are reusable objects that hook into a component&#8217;s lifecycle, and you don&#8217;t need glue code. Mix <code>ReactiveControllerHost<\/code> into a component, and every controller you add gets <code>hostConnected<\/code>, <code>hostWillRender<\/code>, <code>hostDidUpdate<\/code>, and the rest:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ src\/mouse-controller.ts\n\nimport type { ReactiveController, ReactiveControllerHostInterface } from '@stencil\/core';\n\nexport class MouseController implements ReactiveController {\n  pos = { x: 0, y: 0 };\n\n  constructor(private host: ReactiveControllerHostInterface) {\n    host.addController(this);\n  }\n\n  private onMove = (e: MouseEvent) => {\n    this.pos = { x: e.clientX, y: e.clientY };\n    this.host.requestUpdate();\n  };\n\n  hostConnected() {\n    window.addEventListener('mousemove', this.onMove);\n  }\n\n  hostDisconnected() {\n    window.removeEventListener('mousemove', this.onMove);\n  }\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ src\/mouse-controller.ts<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">type<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">ReactiveController<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">ReactiveControllerHostInterface<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;@stencil\/core&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">MouseController<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">implements<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">ReactiveController<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">pos<\/span><span style=\"color: #D4D4D4\"> = { <\/span><span style=\"color: #9CDCFE\">x:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">y:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\"> };<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #569CD6\">constructor<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">private<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">host<\/span><span style=\"color: #D4D4D4\">: <\/span><span style=\"color: #4EC9B0\">ReactiveControllerHostInterface<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">host<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">addController<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">this<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #569CD6\">private<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">onMove<\/span><span style=\"color: #D4D4D4\"> = (<\/span><span style=\"color: #9CDCFE\">e<\/span><span style=\"color: #D4D4D4\">: <\/span><span style=\"color: #4EC9B0\">MouseEvent<\/span><span style=\"color: #D4D4D4\">) <\/span><span style=\"color: #569CD6\">=&gt;<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">pos<\/span><span style=\"color: #D4D4D4\"> = { <\/span><span style=\"color: #9CDCFE\">x:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">e<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">clientX<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">y:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">e<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">clientY<\/span><span style=\"color: #D4D4D4\"> };<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">host<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">requestUpdate<\/span><span style=\"color: #D4D4D4\">();<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  };<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">hostConnected<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">window<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">addEventListener<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;mousemove&#39;<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #569CD6\">this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">onMove<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">hostDisconnected<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">window<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">removeEventListener<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;mousemove&#39;<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #569CD6\">this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">onMove<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ src\/my-mouse.tsx\n\nimport { Component, Host, Mixin, ReactiveControllerHost } from '@stencil\/core';\nimport { MouseController } from '.\/mouse-controller';\n\n@Component({ tag: 'my-mouse' })\nexport class MyMouse extends Mixin(ReactiveControllerHost) {\n  private mouse = new MouseController(this);\n\n  render() {\n    return &lt;Host>{this.mouse.pos.x}, {this.mouse.pos.y}&lt;\/Host>;\n  }\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ src\/my-mouse.tsx<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">Component<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">Host<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">Mixin<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">ReactiveControllerHost<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;@stencil\/core&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> { <\/span><span style=\"color: #9CDCFE\">MouseController<\/span><span style=\"color: #D4D4D4\"> } <\/span><span style=\"color: #C586C0\">from<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;.\/mouse-controller&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #DCDCAA\">Component<\/span><span style=\"color: #D4D4D4\">({ <\/span><span style=\"color: #9CDCFE\">tag:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&#39;my-mouse&#39;<\/span><span style=\"color: #D4D4D4\"> })<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">MyMouse<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">extends<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">Mixin<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">ReactiveControllerHost<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #569CD6\">private<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">mouse<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #569CD6\">new<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">MouseController<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">this<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">render<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #808080\">&lt;<\/span><span style=\"color: #4EC9B0\">Host<\/span><span style=\"color: #808080\">&gt;<\/span><span style=\"color: #569CD6\">{this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">mouse<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">pos<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">x<\/span><span style=\"color: #569CD6\">}<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #569CD6\">{this<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">mouse<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">pos<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">y<\/span><span style=\"color: #569CD6\">}<\/span><span style=\"color: #808080\">&lt;\/<\/span><span style=\"color: #4EC9B0\">Host<\/span><span style=\"color: #808080\">&gt;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/stenciljs.com\/docs\/v5\/mixins-and-controllers#compose-reactive-controllers\" target=\"_blank\" rel=\"noopener\">See some more examples<\/a>.<\/p>\n\n\n\n<h2 id=\"styling\" class=\"wp-block-heading\">Styling<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Global styles now get their own output target, <code>global-style<\/code>, so you can have as many as you like, for example a separate light and dark theme, and choose with <code>inject<\/code> whether Stencil also adds each one to your shadow DOM components. <a href=\"https:\/\/stenciljs.com\/docs\/v5\/styling\" target=\"_blank\" rel=\"noopener\">Read more about styling<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add <code>@import \"stencil-hydrate\";<\/code> to a global stylesheet and Stencil writes its FOUC-prevention CSS, which hides components until they have loaded, into that file at build time. As a result, this replaces the default behavior of the loader injecting a <code>&lt;style&gt;<\/code> tag at runtime.<\/p>\n\n\n\n<h2 id=\"less-boilerplate\" class=\"wp-block-heading\">Less Boilerplate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil 5 removes a lot of the boilerplate requirements, so a new default project doesn&#8217;t need any of the following.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A <code>stencil.config.ts<\/code>.<\/strong> With no config, Stencil builds a <code>loader-bundle<\/code>, which is the output most design systems want.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A namespace.<\/strong> It&#8217;s taken from your <code>package.json<\/code> name, or the directory name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A <code>tsconfig.json<\/code>.<\/strong> If there isn&#8217;t one, Stencil writes one for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>An <code>index.html<\/code>.<\/strong> The dev server generates <a href=\"#development-previews\">preview pages<\/a> for your components.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Global style and script wiring.<\/strong> Stencil picks up <code>src\/global.{css,scss,sass}<\/code> and <code>src\/global.{ts,js}<\/code> automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A folder of <code>.tsx<\/code> files and <code>npx stencil build --dev --serve<\/code> is enough to get going. Add config later if you need it.<\/p>\n\n\n\n<h2 id=\"development-previews\" class=\"wp-block-heading\">Development Previews<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ve also added auto-previews to Stencil&#8217;s built-in dev server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add examples to the <code>usage<\/code> folder, for example <code>src\/my-button\/usage\/basic.md<\/code>, and their <code>html<\/code> code blocks become the preview. Then run <code>stencil build --dev --serve<\/code> and navigate to the component&#8217;s folder:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" data-src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-1024x473.png\" alt=\"\" class=\"wp-image-7024 lazyload\" data-srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-1024x473.png 1024w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-300x138.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-767x354.png 767w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-1536x709.png 1536w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1.png 1928w\" data-sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/473;\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-1024x473.png\" alt=\"\" class=\"wp-image-7024\" srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-1024x473.png 1024w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-300x138.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-767x354.png 767w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1-1536x709.png 1536w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/stencil-dev-preview-1.png 1928w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/noscript><figcaption class=\"wp-element-caption\"><em>My button component preview<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer granular control, keep using <code>index.html<\/code> files as you do now. We&#8217;ve also made the <a href=\"https:\/\/stenciljs.com\/docs\/v5\/storybook\" target=\"_blank\" rel=\"noopener\">integration with Storybook<\/a> even nicer.<\/p>\n\n\n\n<h2 id=\"server-side-rendering\" class=\"wp-block-heading\">Server-Side Rendering<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>dist-hydrate-script<\/code> output target is now <a href=\"https:\/\/stenciljs.com\/docs\/v5\/ssr\" target=\"_blank\" rel=\"noopener\"><code>ssr<\/code><\/a>. The <a href=\"https:\/\/github.com\/stenciljs\/ssr-examples\" target=\"_blank\" rel=\"noopener\">SSR examples repo<\/a> has working setups for Next.js, React Router, TanStack Start, Nuxt, SvelteKit, SolidStart, Astro, Angular, and Eleventy.<\/p>\n\n\n\n<h3 id=\"streaming\" class=\"wp-block-heading\">Streaming<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SSR can now stream. <code>streamToString()<\/code> returns a web-standard <code>ReadableStream<\/code>, so it runs in Node, Cloudflare Workers, Deno, Bun, and other edge runtimes.<\/p>\n\n\n\n<h3 id=\"ssr-wasm\" class=\"wp-block-heading\">SSR WASM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There&#8217;s also the new, still somewhat experimental, <a href=\"https:\/\/stenciljs.com\/docs\/v5\/ssr-wasm\" target=\"_blank\" rel=\"noopener\"><code>ssr-wasm<\/code><\/a> output target. It compiles your server renderer to WebAssembly, so a server in PHP, Java, Go, .NET, or any other language can render your components without Node.js. Check out the <a href=\"https:\/\/github.com\/stenciljs\/ssr-wasm-examples\" target=\"_blank\" rel=\"noopener\">SSR WASM examples repo<\/a>.<\/p>\n\n\n\n<h2 id=\"using-your-components-elsewhere\" class=\"wp-block-heading\">Using Your Components Elsewhere<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ve added more outputs and supporting libraries, so your components can compile, run, and be read in more ways.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/stenciljs.com\/docs\/v5\/framework-types\" target=\"_blank\" rel=\"noopener\">Framework types<\/a>.<\/strong> React 19, Vue, Solid, Svelte, Preact, and Astro render custom elements without wrappers. <code>@stencil\/types-output-target<\/code> also generates the types that let them type-check your components&#8217; props and events.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/stenciljs.com\/docs\/v5\/bundler-plugin\" target=\"_blank\" rel=\"noopener\">The bundler plugin<\/a>.<\/strong> <code>@stencil\/unplugin<\/code> compiles Stencil components inside Vite, webpack, Rspack, Rollup, or esbuild. As a result, you can write components directly in an app with no separate Stencil build. So far we mainly use it for Vitest and Storybook, but it may be useful elsewhere.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/stenciljs.com\/docs\/v5\/docs-agent-skill\" target=\"_blank\" rel=\"noopener\">An agent skill<\/a>.<\/strong> The <code>docs-agent-skill<\/code> output target generates a skill from your JSDoc comments and usage examples, so AI coding agents can use your library correctly.<\/p>\n\n\n\n<h2 id=\"testing\" class=\"wp-block-heading\">Testing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil no longer includes its built-in test runner, which was <code>stencil test --spec<\/code> and <code>--e2e<\/code> with Jest and Puppeteer. Instead, its replacements are separate packages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/stenciljs.com\/docs\/v5\/testing-vitest\" target=\"_blank\" rel=\"noopener\"><code>@stencil\/vitest<\/code><\/a> handles unit and component tests, in Node or in real browsers, while <a href=\"https:\/\/stenciljs.com\/docs\/v5\/testing\/playwright\/overview\" target=\"_blank\" rel=\"noopener\"><code>@stencil\/playwright<\/code><\/a> handles end-to-end tests across browsers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Both have migration guides, and you can keep your existing <code>newSpecPage()<\/code> tests while you move.<\/p>\n\n\n\n<h2 id=\"under-the-hood\" class=\"wp-block-heading\">Under the Hood<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Builds are around 1.5 to 2 times faster than v4. If you want the numbers, you can see the <a href=\"https:\/\/github.com\/stenciljs\/core\/pull\/6657#issuecomment-5299208067\" target=\"_blank\" rel=\"noopener\">benchmarks<\/a> on GitHub.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rolldown.<\/strong> Stencil now bundles with <a href=\"https:\/\/rolldown.rs\/\" target=\"_blank\" rel=\"noopener\">Rolldown<\/a> in place of Rollup. <code>rollupConfig<\/code> and <code>rollupPlugins<\/code> become <code>rolldownConfig<\/code> and <code>rolldownPlugins<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Lightning CSS.<\/strong> <a href=\"https:\/\/lightningcss.dev\/\" target=\"_blank\" rel=\"noopener\">Lightning CSS<\/a> now autoprefixes and minifies your CSS, in place of Autoprefixer and Stencil&#8217;s own minifier.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>OXC.<\/strong> Stencil now minifies JavaScript with <a href=\"https:\/\/oxc.rs\/\" target=\"_blank\" rel=\"noopener\">OXC<\/a> by default, but you can set <code>jsMinifier: 'terser'<\/code> to keep using Terser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Your TypeScript.<\/strong> Stencil uses the TypeScript in your project, 5.x or 6.x, and no longer ships its own copy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ESM.<\/strong> Stencil&#8217;s own packages are pure ESM, and the <code>loader-bundle<\/code> and <code>ssr<\/code> outputs no longer generate CommonJS by default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Renamed output targets.<\/strong> <code>dist<\/code> is now <code>loader-bundle<\/code>, <code>dist-custom-elements<\/code> is <code>standalone<\/code>, and <code>dist-hydrate-script<\/code> is <code>ssr<\/code>.<\/p>\n\n\n\n<h2 id=\"migrating-from-v4-theres-a-tool-for-that\" class=\"wp-block-heading\">Migrating from v4? There&#8217;s a Tool for That<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Upgrade from the latest Stencil v4:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>npm install @stencil\/core@rc --save-dev\nnpx stencil migrate\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">npm<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">install<\/span><span style=\"color: #D4D4D4\"> @<\/span><span style=\"color: #9CDCFE\">stencil<\/span><span style=\"color: #D4D4D4\">\/<\/span><span style=\"color: #9CDCFE\">core<\/span><span style=\"color: #D4D4D4\">@<\/span><span style=\"color: #9CDCFE\">rc<\/span><span style=\"color: #D4D4D4\"> --<\/span><span style=\"color: #9CDCFE\">save<\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #9CDCFE\">dev<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">npx<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">stencil<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">migrate<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>stencil migrate --dry-run<\/code> shows what it will change first. Most of the config and decorator changes are automatic, but there are a few things to look out for.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Node.js 22 or later.<\/strong> Stencil 5 requires it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Browser support<\/strong> is now ES2022: Chrome and Edge 94+, Firefox 93+, and Safari 16.4+.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Boolean props follow the HTML spec.<\/strong> <code>&lt;my-cmp disabled=\"false\"&gt;<\/code> now means <code>disabled === true<\/code>, so remove the attribute instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>TypeScript 6<\/strong>, which Stencil installs if your project doesn&#8217;t pin 5.x, rejects <code>\"moduleResolution\": \"node\"<\/code> and turns <code>strict<\/code> on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ESM only.<\/strong> <code>require('@stencil\/core\/...')<\/code> no longer works.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/stenciljs.com\/docs\/v5\/upgrading-to-stencil-5\" target=\"_blank\" rel=\"noopener\">upgrade guide<\/a> goes through each step, and the <a href=\"https:\/\/github.com\/stenciljs\/core\/blob\/v5\/BREAKING_CHANGES.md#stencil-v500\" target=\"_blank\" rel=\"noopener\">full list of breaking changes<\/a> explains the reason for every change.<\/p>\n\n\n\n<h2 id=\"lets-get-started\" class=\"wp-block-heading\">Let&#8217;s Get Started<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stencil 5 Release Candidate is ready to try today. First, run <code>npx stencil migrate --dry-run<\/code> on an existing v4 project to see what would change, or follow the <a href=\"https:\/\/stenciljs.com\/docs\/v5\/upgrading-to-stencil-5\" target=\"_blank\" rel=\"noopener\">upgrade guide<\/a> step by step. Then check the <a href=\"https:\/\/stenciljs.com\/docs\/v5\/\" target=\"_blank\" rel=\"noopener\">v5 docs<\/a>, which cover every feature in this post in more depth, with new in-browser playgrounds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We would love to hear how it goes, including the rough edges. If something is broken, or behaves differently from v4 and isn&#8217;t described in the <a href=\"https:\/\/github.com\/stenciljs\/core\/blob\/v5\/BREAKING_CHANGES.md#stencil-v500\" target=\"_blank\" rel=\"noopener\">breaking changes<\/a>, please <a href=\"https:\/\/github.com\/stenciljs\/core\/issues\" target=\"_blank\" rel=\"noopener\">open an issue on GitHub<\/a> and tell us about it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you to everyone in the community who has contributed ideas, PRs, and feedback along the way. \ud83d\udc99<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Questions? Come find us <a href=\"https:\/\/discord.com\/channels\/1347590794130755665\/\" target=\"_blank\" rel=\"noopener\">in Discord<\/a> or <a href=\"https:\/\/github.com\/stenciljs\/core\/issues\" target=\"_blank\" rel=\"noopener\">open an issue on GitHub<\/a>.<\/p>\n\n\n\n<hr>\n\n\n\n<p class=\"wp-block-paragraph\">To follow John Jenkins and the work he does for the Stencil community, be sure to check out his <a href=\"https:\/\/x.com\/John_Jenkins\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">X<\/a>!&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have a good story to share with the community? Get in touch, and we&#8217;d love to feature it in a spotlight post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>John Jenkins is a long-time Ionic user, a web-standards fan and advocate, and the community lead contributor to Stencil. Stencil 5 Release Candidate is here! \ud83d\ude80 Let&#8217;s have a look at what&#8217;s new. Stencil 5 brings a new CLI, a new bundler, CSS-only components, signals, reactive controllers, and server rendering for any framework and language. [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":7011,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,307,223],"tags":[3,76,288],"class_list":["post-7010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-community","category-stencil","tag-ionic","tag-stencil","tag-stenciljs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.0 (Yoast SEO v23.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Stencil 5 New Features and Enhancements Overview<\/title>\n<meta name=\"description\" content=\"Get familiar with Stencil 5, the latest release with a revamped CLI, better testing, and a fresh approach to web components.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Stencil 5 Release Candidate: New Features Unveiled\" \/>\n<meta property=\"og:description\" content=\"Stencil 5 Release Candidate is here! Dive into the new updates for better custom component development and user experience.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\" \/>\n<meta property=\"og:site_name\" content=\"Ionic Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-30T16:14:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-30T16:14:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"840\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"John Jenkins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Community Spotlight: Stencil 5 Release Candidate Stencil 5 Release Candidate: New Features Unveiled\" \/>\n<meta name=\"twitter:description\" content=\"Stencil 5 Release Candidate is here! Dive into the new updates for better custom component development and user experience.\" \/>\n<meta name=\"twitter:creator\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:site\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Jenkins\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#article\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\"},\"author\":{\"name\":\"John Jenkins\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/c26a3f756f326eb47cda267361b1e37c\"},\"headline\":\"Community Spotlight: Stencil 5 Release Candidate\",\"datePublished\":\"2026-11-30T16:14:23+00:00\",\"dateModified\":\"2026-11-30T16:14:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\"},\"wordCount\":1767,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg\",\"keywords\":[\"Ionic\",\"stencil\",\"stenciljs\"],\"articleSection\":[\"All\",\"Community\",\"Stencil\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\",\"url\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\",\"name\":\"Stencil 5 New Features and Enhancements Overview\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg\",\"datePublished\":\"2026-11-30T16:14:23+00:00\",\"dateModified\":\"2026-11-30T16:14:24+00:00\",\"description\":\"Get familiar with Stencil 5, the latest release with a revamped CLI, better testing, and a fresh approach to web components.\",\"breadcrumb\":{\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg\",\"width\":2000,\"height\":840,\"caption\":\"Stencil 5 Release Candidate\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ionic.io\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Community Spotlight: Stencil 5 Release Candidate\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ionic.io\/blog\/#website\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"name\":\"ionic.io\/blog\",\"description\":\"Build amazing native and progressive web apps with the web\",\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ionic.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ionic.io\/blog\/#organization\",\"name\":\"Ionic\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"width\":1920,\"height\":854,\"caption\":\"Ionic\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ionicframework\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/c26a3f756f326eb47cda267361b1e37c\",\"name\":\"John Jenkins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/johnjenkins-stencil-150x150.jpg\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/johnjenkins-stencil-150x150.jpg\",\"caption\":\"John Jenkins\"},\"url\":\"https:\/\/ionic.io\/blog\/author\/johnjenkins\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Stencil 5 New Features and Enhancements Overview","description":"Get familiar with Stencil 5, the latest release with a revamped CLI, better testing, and a fresh approach to web components.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate","og_locale":"en_US","og_type":"article","og_title":"Stencil 5 Release Candidate: New Features Unveiled","og_description":"Stencil 5 Release Candidate is here! Dive into the new updates for better custom component development and user experience.","og_url":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate","og_site_name":"Ionic Blog","article_published_time":"2026-11-30T16:14:23+00:00","article_modified_time":"2026-11-30T16:14:24+00:00","og_image":[{"width":2000,"height":840,"url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg","type":"image\/jpeg"}],"author":"John Jenkins","twitter_card":"summary_large_image","twitter_title":"Community Spotlight: Stencil 5 Release Candidate Stencil 5 Release Candidate: New Features Unveiled","twitter_description":"Stencil 5 Release Candidate is here! Dive into the new updates for better custom component development and user experience.","twitter_creator":"@ionicframework","twitter_site":"@ionicframework","twitter_misc":{"Written by":"John Jenkins","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#article","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate"},"author":{"name":"John Jenkins","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/c26a3f756f326eb47cda267361b1e37c"},"headline":"Community Spotlight: Stencil 5 Release Candidate","datePublished":"2026-11-30T16:14:23+00:00","dateModified":"2026-11-30T16:14:24+00:00","mainEntityOfPage":{"@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate"},"wordCount":1767,"commentCount":0,"publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"image":{"@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg","keywords":["Ionic","stencil","stenciljs"],"articleSection":["All","Community","Stencil"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate","url":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate","name":"Stencil 5 New Features and Enhancements Overview","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage"},"image":{"@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg","datePublished":"2026-11-30T16:14:23+00:00","dateModified":"2026-11-30T16:14:24+00:00","description":"Get familiar with Stencil 5, the latest release with a revamped CLI, better testing, and a fresh approach to web components.","breadcrumb":{"@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#primaryimage","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg","width":2000,"height":840,"caption":"Stencil 5 Release Candidate"},{"@type":"BreadcrumbList","@id":"https:\/\/ionic.io\/blog\/community-spotlight-stencil-5-release-candidate#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ionic.io\/blog"},{"@type":"ListItem","position":2,"name":"Community Spotlight: Stencil 5 Release Candidate"}]},{"@type":"WebSite","@id":"https:\/\/ionic.io\/blog\/#website","url":"https:\/\/ionic.io\/blog\/","name":"ionic.io\/blog","description":"Build amazing native and progressive web apps with the web","publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ionic.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ionic.io\/blog\/#organization","name":"Ionic","url":"https:\/\/ionic.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","width":1920,"height":854,"caption":"Ionic"},"image":{"@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ionicframework"]},{"@type":"Person","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/c26a3f756f326eb47cda267361b1e37c","name":"John Jenkins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/johnjenkins-stencil-150x150.jpg","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/johnjenkins-stencil-150x150.jpg","caption":"John Jenkins"},"url":"https:\/\/ionic.io\/blog\/author\/johnjenkins"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2026\/11\/hero-centered-ionic-midnight-navy.jpg","_links":{"self":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/7010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/comments?post=7010"}],"version-history":[{"count":10,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/7010\/revisions"}],"predecessor-version":[{"id":7037,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/7010\/revisions\/7037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media\/7011"}],"wp:attachment":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media?parent=7010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/categories?post=7010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/tags?post=7010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}