Expand description
Built-in components and composition helpers.
Structs§
- Children
- Content passed to a layout or template.
- Image
Props - Builder behind
Image!. - Link
Props - 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
ImagePropssrcsetgeneration.
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_jsonmust be JSON. - raw_
html - Unescaped HTML. Never pass untrusted input.
- suspense
- An async boundary.
fallbackrenders immediately;contentis awaited. - when
- Render
f()only whenconditionis true.