Sparks
Sparks are optional behaviours added to a UIX Forge forged element via the forge.sparks list. Each spark has a type key and its own configuration options.
Available sparks:
Tooltip โ attach a styled tooltip to any element within the forged element.
- Button โ insert an interactive
ha-buttonelement as a sibling after any element within the forged element. - Badge โ insert a Web Awesome-styled
uix-badgeas a sibling before or after any element within the forged element. Attribute โ add, replace or remove an attribute of any element within the forged element.
Event โ receive DOM events from
fire-dom-eventactions and expose their data as template variables.Tile Icon โ insert a
ha-tile-iconelement as a sibling before or after any element within the forged element.State Badge โ insert a
state-badgeelement as a sibling before or after any element within the forged element.- Grid โ apply CSS Grid layout to any container element within the forged element.
Search โ find elements within a container by CSS selector and optional text filter, then apply class, attribute, or text mutations to all matches.
- Map โ preserve the zoom level and centre of a map card across Home Assistant state updates.
- Lock โ overlay a lock icon on any element to block interaction until the user passes a PIN, passphrase, or confirmation challenge.
- More-info โ embed Home Assistant more-info content for an entity inside a forged element.
- Form โ add a Home Assistant form and optional submit and clear actions to a forged element.
- Overlay Icon โ overlay a
ha-icon/ha-state-iconon any element inside the forged element. - Background โ inject a background layer (colour, image, video, or live camera) behind any element within the forged element.
- Theme โ apply a Frontend theme to the forged element or one of its descendants.