icebook - A theme-agnostic storybook for Iced components
Overview
icebook provides a framework for building component storybooks with Iced.
It's designed to be generic over your theme system - bring your own themes
by implementing the ThemeProvider trait.
Quick Start
use *;
// Define your theme provider
;
// Define your story registry
// Run the storybook
Architecture
- StoryRegistry: Trait that your storybook must implement. Provides story metadata and rendering functions.
- ThemeProvider: Trait that supplies themes. Your registry specifies which provider to use.
- SidebarTheme: Minimal theme trait for the sidebar UI. Default implementations provided.
- Storybook: The main application shell that displays stories.