~/talk

Documenting Component Libraries with VitePress

Talkat ViteConf 2023 · 2023-10-05..10-06· [web-platform, documentation]
links:none on file
slides:none on file

Shows how to render component demos inside VitePress by wiring VitePress + WhyFrame integration that mounts a WhyFrame app into an iframe, uses a Vite plugin with rewrites to keep docs beside components, and injects component library globals by importing CSS as a string and injecting into the iframe. Adds VP-raw class to avoid event interception and suggests a postcss-isolate step (Tailwind example) to stop base styles leaking; demos work including dark mode and shadcn/ui.

AI-written summary · about

  1. 0:00Introduction to VitePress
  2. 0:25The problem of isolation
  3. 1:15VFrame integration overview
  4. 2:00Technical implementation
  5. 3:00CSS isolation strategies
  6. 3:33Demonstrating the solution
  7. 3:56Future goals and roadmap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.