GithubHelp home page GithubHelp logo

afonsopacifer / web-components-good-practices Goto Github PK

View Code? Open in Web Editor NEW
81.0 6.0 3.0 3 KB

:sunglasses::ballot_box_with_check: Good Practices for build Web Components.

License: MIT License

polymer tests a11y performance unix-philosophy web-co web-components

web-components-good-practices's Introduction

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

  • 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

web-components-good-practices's People

Contributors

afonsopacifer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.