Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

core

> DevOps
Open source

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed na

13.1K stars0 likes1 views
WebsiteGitHub

About

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed na

Stencil

A compiler for generating Web Components using technologies like TypeScript and JSX, built by the Ionic team.

Quick Start · Documentation · Contribute · Blog
Community: Discord · Forums · Twitter

Getting Started

Start a new project by following our quick Getting Started guide. We would love to hear from you! If you have any feedback or run into issues using Stencil, please file an issue on this repository.

Examples

A Stencil component looks a lot like a class-based React component, with the addition of TypeScript decorators:

typescript
import { Component, Prop, h } from '@stencil/core';

@Component({
  tag: 'my-component',            // the name of the component's custom HTML tag
  styleUrl: 'my-component.css',   // css styles to apply to the component
  shadow: true,                   // this component uses the ShadowDOM
})
export class MyComponent {
  // The component accepts two arguments:
  @Prop() first: string;
  @Prop() last: string;

   //The following HTML is rendered when our component is used
  render() {
    return (
      

    );
  }
}

The component above can be used like any other HTML element:

xml
<my-component first="Stencil" last="JS"></my-component>

Since Stencil generates web components, they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend framework, though using it as such is certainly not required.

Contributing

Thanks for your interest in contributing! Please take a moment to read up on our guidelines for contributing. We've created comprehensive technical documentation for contributors that explains Stencil's internal architecture, including the compiler, runtime, build system, and other core components in the /docs directory. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Issues· 181 open

View all issuesOpen on GitHub
  • #6911

    bug: hydration removes the host classes of a child component that renders before its parent

    triageUpdated Sep 25, 2026
  • #6584

    v5 Breaking Changes Proposals / Discussion

    Updated Sep 24, 2026
  • #6906

    feat: Remove discrepancy between formAssociated bool resolving and normal bool Props

    Stencil v5Updated Sep 24, 2026
  • #6833

    feat: support `clonable` in the shadow option of @Component

    Stencil v5Updated Aug 19, 2026
  • #6793

    feat: avoid re-evaluating the hydrate platform closure on every SSR render

    Feature: Want this? Upvote it!Updated Aug 14, 2026
  • #6626

    feat: support for `referenceTarget` shadow DOM feature

    Feature: Want this? Upvote it!Stencil v5Updated Aug 10, 2026
  • #6637

    bug: Styles not rendered, gone from the DOM due to 3rd party framework interference (svelte/sveltekit)

    Updated Aug 10, 2026
  • #6798

    bug: @stencil/store stops re-rendering components when the store is created from globalScript code (since 4.33.0)

    Bug: ValidatedStencil v5Updated Aug 10, 2026
  • #6760

    feat: Docs dependencies should include Mixins

    Feature: Want this? Upvote it!Updated Aug 10, 2026
  • #6636

    bug: component's child initial timing leads to unexpected behavior

    Bug: ValidatedStencil v5Updated Aug 7, 2026

> Tags

TypeScriptcustom-elementdesign-systemionicssg

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理