Skip to content

hd-scene

Attributes and example

hd-scene

A mood or flow on a room’s card (F22), written inside its hd-room (often in a {% for scene in room.scenes %}); draws nothing itself. The card shows them as buttons in this order.

AttributeWhat it is
typerequiredWhether it sets a mood or starts a flow, e.g. {{ scene.type }}.One of mood, flow.
refrequiredThe mood’s or flow’s id, e.g. {{ scene.id }}.
nameIts name on the button, e.g. {{ scene.name }}.
<hd-scene type="{{ scene.type }}" ref="{{ scene.id }}" name="{{ scene.name }}"></hd-scene>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

No component-specific CSS variables are exposed. Use the host element’s sizing and the documented theme variables.

Style the host

hd-scene {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables