module
catalogue
Documentation for every component family: a summary, a live usage example, and each part's props and events. Drives the component catalogue page and the language server's hovers, completions and prop checks.
Every part also takes COMMON props: class (merged with the part's own classes — yours win), as (render another element), unstyled (only your classes), and plain attributes and DOM event handlers, which go to its root element.
Anything showing data also takes SOURCE_PROPS, and charts take CHART_PROPS. A part's own entry for one of them wins, for the few where it means something more.
Structs
Functions
demo_photo
pub fn demo_photo(name: &str) -> StringA generated landscape (an SVG data URI) for examples and placeholders: dunes, aurora, ocean, forest, canyon, city or nebula.
find_part
pub fn find_part(name: &str) -> Option<(&'static Doc, &'static Part)>Any part by component name, with its family.
Constants
SOURCE_EVENTS
pub const SOURCE_EVENTS: &[(&str, &str)] = _;Events everything reading a data source emits.
SOURCE_PROPS
pub const SOURCE_PROPS: &[Prop] = _;Props everything that shows data takes: where the data comes from, how to read it, and how it keeps up to date.