2.23.2 • Published 2 months ago

@johnjenkins/stencil-community v2.23.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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:

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 (
      <div>
        Hello, my name is {this.first} {this.last}
      </div>
    );
  }
}

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

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

Thanks

Stencil's internal testing suite is supported by the BrowserStack Open-Source Program

2.23.2

2 months ago

2.23.1

8 months ago

2.23.0

1 year ago

2.22.6

1 year ago

2.22.3

1 year ago

2.22.2

1 year ago

2.22.5

1 year ago

2.22.4

1 year ago

2.22.1

1 year ago

2.22.0

1 year ago

2.19.4

1 year ago

2.21.1

1 year ago

2.17.4

2 years ago

2.17.1

2 years ago

2.12.2

2 years ago

2.11.1

2 years ago

2.5.10

3 years ago

2.5.9

3 years ago

2.5.6

3 years ago

2.5.8

3 years ago

2.5.7

3 years ago

2.5.5

3 years ago

2.5.4

3 years ago

2.5.3

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.0.0

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago