Skip to main content

Built and signed on GitHub Actions

Render caniuse.com data on a page

This package works with BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (1.0.8)
class default
extends HTMLElement

Represents a custom web component that displays information about browser support for a specific feature.

Properties

Sets the value of the "accessible-colours" attribute.

writeonly
feature: string

Sets the value of the "feature" attribute.

writeonly
mode: string
writeonly
periods: string

Sets the value of the "periods" attribute.

Gets the value of the "accessible-colours" attribute.

readonly
feature: string

Gets the value of the "feature" attribute.

readonly
mode: string
readonly
periods: string

Gets the value of the "periods" attribute.

Methods

attributeChangedCallback(
name: string,
oldValue: string,
newValue: string,
): void

Called when an observed attribute has changed.

Called when the component is connected to the DOM.

Called when the component is disconnected from the DOM.

Static Properties

Returns the list of attributes that the component observes for changes.

Add Package

deno add jsr:@web-components/can-i-use

Import symbol

import module from "@web-components/can-i-use";

---- OR ----

Import directly with a jsr specifier

import module from "jsr:@web-components/can-i-use";

Add Package

npx jsr add @web-components/can-i-use

Import symbol

import module from "@web-components/can-i-use";

Add Package

yarn dlx jsr add @web-components/can-i-use

Import symbol

import module from "@web-components/can-i-use";

Add Package

pnpm dlx jsr add @web-components/can-i-use

Import symbol

import module from "@web-components/can-i-use";

Add Package

bunx jsr add @web-components/can-i-use

Import symbol

import module from "@web-components/can-i-use";