molecules
Band
A decorative full-bleed plate with inset shadows that sits behind sibling content, optionally filled with a parallax image.
Specimens
{{ Band.render({ classes: "left-0" }) }}{{ Band.render({ classes: "left-0", image: cms.home.0.statements.0.image }) }}Params
| Param | Type | Notes |
|---|---|---|
image | Sanity image object | Optional. Rendered from asset.url through imageUrl({w: 1920, q: 75}), with empty alt and loading="lazy". |
classes | string, variant map or array | Appended to the band root. Callers pass the negative left offset here. |
attrs | string | Extra attributes on the root, such as the data-hero-el="band" hook. |
imageAttrs | string | Extra attributes on the <img>, such as data-hero-el="band-image". |
Notes
On the homepage the caller passes a negative left offset through classes so the full-width band reaches the viewport edge. Here the offset is zero.