Skip to contents

Every shadshiny component, rendered live on one of the gallery pages below. Each preview shows the real component alongside the exact source that produced it – these are not screenshots. Previews follow the site’s light/dark switch, so you can see both modes without leaving the page.

New to the package? Read Get started first, then browse here.

A taste

A few components, live – expand Code under any preview to see how it’s built.

New
Code
shad_button("Get started", icon = "arrow-right", icon_position = "right")
shad_badge("New", icon = "check")
shad_button("Outline", variant = "outline")
Code
shad_alert(title = "It's all live", "Every preview on these pages is the real component, initialised in your browser.", icon = "info")

How the previews work

shadshiny components are plain htmltools tags that each carry the bundled asset dependency. Rendering one in an article embeds the real CSS and JavaScript, so the component initialises client-side exactly as it would in a running app – dialogs open, tabs switch, carousels slide. Because dark mode keys off [data-bs-theme="dark"] (which the navbar’s light-switch toggles), the previews recolour with the rest of the site. The Theming guide explains the token system behind that.