Back to showcase

Utility Components

Theme toggle, loading skeletons, empty states, and other utility components.

ThemeToggle

Sun/moon icon button that toggles between light and dark themes. No props — uses the theme store. Rendered in TopBar.

Click to toggle theme

No props. Uses themeState store internally.

ScrollToTop

Fixed floating action button that appears after scrolling 400px. Smooth-scrolls to top on click. No props. Rendered in the root layout.

Scroll down this page to see it appear in the bottom-right corner.

Skeleton

Loading placeholder with pulse animation. Four variants for different content types.

variant="heading"

variant="text" lines=3

variant="code"

variant="block"

PropTypeDefaultDescription
variant'text' | 'heading' | 'block' | 'code''text'Skeleton shape preset
widthstring?variesOverride width (CSS value)
heightstring?variesOverride height (CSS value)
linesnumber1Number of skeleton lines (last line is 75% width)

EmptyState

Centered empty state placeholder with optional description and action link.

No results found

Try adjusting your search terms or filters.

Clear filters

No webhooks configured

PropTypeDescription
titlestringMain heading
descriptionstring?Optional description text
action{ label, href }?Optional action link