0.1.0 • Published 9 months ago
slidev-addon-stem v0.1.0
slidev-addon-stem
A Slidev addon that provides components for embedding interactive Plotly figures and image figures with captions, along with a specialized layout for scientific and technical presentations.
Demo
https://yutaka-shoji.github.io/slidev-addon-stem/

Installation
pnpm install slidev-addon-stemFeatures
PlotlyFigure Component
Embed interactive Plotly figures in your slides.
<PlotlyFigure
src="/path/to/figure.json"
caption="Figure 1: Sample Figure"
width="100%"
height="320px"
:fontSize="12"
/>Properties
src: Path to the Plotly figure JSON file (required)caption: Figure caption text (required)width: Figure width (optional, default: "100%")height: Figure height (optional, default: "360px")fontSize: Font size for the figure (optional, number)
ImageFigure Component
Display images with captions.
<ImageFigure
src="/path/to/image.png"
caption="Figure 2: Sample Image"
width="100%"
height="200px"
/>Properties
src: Path to the image file (required)caption: Image caption text (required)width: Image width (optional, default: "100%")height: Image height (optional, default: "100%")
figure-side Layout
A pre-defined layout that creates a two-column structure with content on the left and a figure on the right.
---
layout: figure-side
figureUrl: /path/to/figure.png
figureCaption: "Figure 3: Sample Caption"
---
::header::
# Title
Subtitle
::content::
Your content goes here.Frontmatter Configuration
layout: Set to "figure-side"figureUrl: Path to the figurefigureCaption: Caption for the figure
License
MIT License