All Projects β†’ stefanjudis β†’ Web Vitals Element

stefanjudis / Web Vitals Element

Licence: mit
A custom elements wrapper around the web-vitals lib.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Web Vitals Element

Dark Mode Toggle
A custom element that allows you to easily put a Dark Mode πŸŒ’ toggle or switch on your site:
Stars: ✭ 550 (+491.4%)
Mutual labels:  custom-elements
Shaf Chart
Custom element that upgrades table to a chart
Stars: ✭ 45 (-51.61%)
Mutual labels:  custom-elements
Use Custom Element
Custom hook to bridge Custom Elements (Web Components) to React.
Stars: ✭ 77 (-17.2%)
Mutual labels:  custom-elements
Xy Ui
πŸŽ¨ι’ε‘ζœͺζ₯ηš„εŽŸη”Ÿ web components UIη»„δ»ΆεΊ“
Stars: ✭ 603 (+548.39%)
Mutual labels:  custom-elements
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-74.19%)
Mutual labels:  custom-elements
File Input
A better <input type="file">
Stars: ✭ 59 (-36.56%)
Mutual labels:  custom-elements
Home Assistant Custom Ui
Custom UI elements for https://home-assistant.io
Stars: ✭ 503 (+440.86%)
Mutual labels:  custom-elements
Aybolit
Lightweight web components library built with LitElement.
Stars: ✭ 90 (-3.23%)
Mutual labels:  custom-elements
Dom99
Extend html with directives
Stars: ✭ 37 (-60.22%)
Mutual labels:  custom-elements
Task Lists Element
Drag and drop task list items.
Stars: ✭ 73 (-21.51%)
Mutual labels:  custom-elements
Details Dialog Element
A modal dialog that's opened with <details>.
Stars: ✭ 603 (+548.39%)
Mutual labels:  custom-elements
Dna
Progressive Web Components.
Stars: ✭ 22 (-76.34%)
Mutual labels:  custom-elements
Custom Element
A base class for Web Components (Custom Elements) which provides simple data binding.
Stars: ✭ 60 (-35.48%)
Mutual labels:  custom-elements
Emoji Picker Element
A lightweight emoji picker for the modern web
Stars: ✭ 587 (+531.18%)
Mutual labels:  custom-elements
Redux Store Element
A custom element allowing a more declarative use of Redux.
Stars: ✭ 83 (-10.75%)
Mutual labels:  custom-elements
Remount
Mount React components to the DOM using custom elements
Stars: ✭ 522 (+461.29%)
Mutual labels:  custom-elements
Custom Elements Ts
Create native custom elements using Typescript
Stars: ✭ 52 (-44.09%)
Mutual labels:  custom-elements
Stencil
A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
Stars: ✭ 9,880 (+10523.66%)
Mutual labels:  custom-elements
Auto Check Element
An input element that validates its value with a server endpoint.
Stars: ✭ 85 (-8.6%)
Mutual labels:  custom-elements
Web Components Angular React
Multiple apps as components POC
Stars: ✭ 64 (-31.18%)
Mutual labels:  custom-elements

web-vitals-element

Bring web vitals quickly into your page using custom elements

web-vitals-element in styled and unstyled version

See it in action on CodePen.

Basic usage

<!-- Include the custom element script -->

<!-- Unstyled (installed locally) -->
<script src="node_modules/web-vitals-element/dist/web-vitals-element.min.js"></script>
<!-- Unstyled from unpkg.com -->
<script src="https://unpkg.com/[email protected]/dist/web-vitals-element.min.js"></script>

<!-- Styled (installed locally) -->
<script src="node_modules/web-vitals-element/dist/web-vitals-element.styled.min.js"></script>
<!-- Styled from unpkg.com -->
<script src="https://unpkg.com/[email protected]/dist/web-vitals-element.styled.min.js"></script>

The element does not render shadow DOM. You can style it like any other element in your HTML page.

After loading the element script, use the web-vitals element in your HTML.

<!-- Basic usage -->
<web-vitals></web-vitals>

<!-- Define the metrics you care about -->
<web-vitals cls fcp fid lcp ttfb></web-vitals>

<!-- Show message about not support metrics -->
<web-vitals show-unsupported></web-vitals>

Currently supported metrics: cls, fcp, fid, lcp, ttfb. Read more about these in the web-vitals documentation.

Contributing

I'd love to see more themes for the web vitals element box – the fancier the better! If you're interested in contributing some fancy looks, please open an issue.

Code of conduct

This project underlies a code of conduct.

License

This project is released under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].