hasantezcan / react-asciinema-player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-asciinema-player

A React component for playing asciinema recordings.

Installation

npm install react-asciinema-player

Usage

import React from "react";

import AsciinemaPlayer from "react-asciinema-player";

const App = () => (
  <AsciinemaPlayer
    src="https://asciinema.org/a/1.cast"
    options={{
      idleTimeLimit: 3,
      preload: true,
      autoPlay: true,
      loop: 0,
      speed: 0.8,
    }}
  />
);

export default App;

About


Languages

Language:TypeScript 76.6%Language:JavaScript 21.8%Language:HTML 1.6%