Skip to main content

Module components

Module components 

Source
Expand description

Built-in components and composition helpers.

Structs§

Children
Content passed to a layout or template.
ImageProps
Builder behind Image!.
LinkProps
Props for Link!; the macro uses attribute helpers directly, this type exists for programmatic construction.
Slots
Parallel-route slots passed to a layout (@analytics → slots.take("analytics")).

Constants§

DEFAULT_IMAGE_WIDTHS
Default responsive widths for ImageProps srcset generation.

Functions§

each
Render every item of an iterator.
fragment_of
Collect any iterator of views into a fragment.
island
Wrap server-rendered markup in an island marker so the client runtime can hydrate it. Used by the #[client] macro; props_json must be JSON.
raw_html
Unescaped HTML. Never pass untrusted input.
suspense
An async boundary. fallback renders immediately; content is awaited.
when
Render f() only when condition is true.