Asciinema component from the package root:
Props
URL of an asciicast or another recording format supported by Asciinema player.
Importing a local recording with
?url produces a suitable value.Serializable Asciinema player
options. The component
passes these options to
AsciinemaPlayer.create in the browser.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.
Class name applied to the rendered
<astro-asciinema> custom element.