Asciinema component from the package root:
Props
string
required
URL of an asciicast or another recording format supported by Asciinema player.
Importing a local recording with
?url produces a suitable value.Omit<Options, "logger">
Serializable Asciinema player
options. The component
passes these options to
AsciinemaPlayer.create in the browser.ThemeSource | false
default:"media"
Source to watch for theme changes. When it changes, the component remounts the
player and preserves its playback time and playing state.Accepted values:
"media": watch(prefers-color-scheme: dark)."class": watch thedarkclass on<html>.{ class: "name" }: watch a custom class on<html>."data-theme": watch thedata-themeattribute on<html>.{ attribute: "name" }: watch a custom attribute on<html>.false: disable theme watching.
string
Class name applied to the rendered
<astro-asciinema> custom element.