twitch-chat-embed

A Web Component for easily embedding a Twitch.tv live chat to any website

Usage no npm install needed!

<script type="module">
  import twitchChatEmbed from 'https://cdn.skypack.dev/twitch-chat-embed';
</script>

README

Twitch Chat Component logo

TwitchChat

TwitchChat is a Web Component for embedding a Twitch Chat onto any web site with just 2 lines of HTML.

Check out a demo here

Installation

NPM

npm install twitch-chat-embed

CDN

<script type="module" src="https://unpkg.com/twitch-chat-embed"></script>

Usage

NPM

import "twitch-chat-embed";

<twitch-chat></twitch-chat>

CDN

<script type="module" src="https://unpkg.com/twitch-chat-embed"></script>

<twitch-chat channel="ESL_SC2"></twitch-chat>

Attributes

Name Type Options
Channel String Any channel name on Twitch.tv
Width String/Number Percentage or a Number
Height String/Number Percentage or a Number