Files
website/content/demos/reactable/index.Rmd
T
Andrew StrykerandClaude Opus 4.6 70bf848fa3 Add demos section with integration tests for site capabilities
Move reactable demo from content/posts/ to content/demos/ so it
doesn't appear in the posts list. Add demo pages for:

- Mermaid: flowchart, sequence, and state diagrams via code blocks
- KaTeX: inline and display math via the math partial
- Shortcodes: toc, rawhtml, youtube, vimeo

All demos are draft: true and in a dedicated section, so they
build with hugo --buildDrafts but are never published.

Also widen Makefile RMD_SOURCES glob to include content/demos/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 09:47:37 -07:00

41 lines
755 B
Plaintext

---
title: "Reactable"
draft: true
---
Exercises the htmlwidget pipeline: statdown renders the R chunks,
depkit copies CSS/JS assets to `static/libs/`, and Hugo serves them.
```{r setup, include=FALSE}
knitr::opts_chunk$set(
echo = FALSE,
warning = FALSE,
message = FALSE
)
```
## Basic Table
```{r basic-table}
library(reactable)
reactable(mtcars[1:10, ], filterable = TRUE, searchable = TRUE)
```
## Styled Table
```{r styled-table}
reactable(
iris[1:15, ],
columns = list(
Sepal.Length = colDef(name = "Sepal Length"),
Sepal.Width = colDef(name = "Sepal Width"),
Petal.Length = colDef(name = "Petal Length"),
Petal.Width = colDef(name = "Petal Width")
),
striped = TRUE,
highlight = TRUE,
bordered = TRUE
)
```