Home
Softono
web-components-good-practices

web-components-good-practices

Open source MIT
81
Stars
3
Forks
0
Issues
4
Watchers
9 years
Last Commit

About web-components-good-practices

# Good Practices for build Web Components **Note:** The best practices presented here are about [polymer](polymer-project.org), but you can follow these recommendations for any [Web Components](https://www.webcomponents.org/introduction) or other type of component based on Libraries or frameworks (like [React](https://facebook.github.io/react/) or any other). **Tip:** For open source projects [see the Open Source Checklist](https://afonsopacifer.github.io/open-source-checklist/). ## Table of contents - [ ] [Make reusable and composable](#make-reusable-and-composable) - [ ] [Cover the basics](#cover-the-basics) - [ ] [Make maintainable](#make-maintainable) - [ ] [Improve performance](#improve-performance) - [ ] [A11y](#a11y) - [ ] [Make customizable](#make-customizable) - [ ] [Document all](#document-all) - [ ] [Publish to the world](#publish-to-the-world) - [ ] [Resources for learning](#resources-for-learning) ## Make reusable and composable - [ ] Learn the 17 Rules of [Unix philosop ...

Platforms

Web Self-hosted

Links

Good Practices for build Web Components

Note: The best practices presented here are about polymer, but you can follow these recommendations for any Web Components or other type of component based on Libraries or frameworks (like React or any other).

Tip: For open source projects see the Open Source Checklist.

Table of contents

Make reusable and composable

Cover the basics

Make maintainable

Improve performance

A11y

Make customizable

  • [ ] Use custom properties and expose the API for users with docs.
  • [ ] Use @apply rule for most generic style and expose the API for users with docs.

Document all

  • [ ] Provide a quick demo (like webcomponents.org inline demo).
  • [ ] Provide a full demo (Polymer iron-demo-helpers is recommended).
  • [ ] Describe how to download and use the component.
  • [ ] Describe how to style the component.
  • [ ] Specify the component support.
  • [ ] Describe your API. (example)
  • [ ] Describe how to run the development environment.
  • [ ] Describe how to run all the tests.

Publish to the world

Resources for learning