Skip to content

Interaction and behavior

Interaction and behavior cover the parts of a card that do something instead of only displaying information. Items can react to taps, appear or disappear from a state, animate, or provide controls that change values directly.

This section introduces actions, visibility, animations, and interactive controls so you can choose the behavior you need.

Make something happen when it is tapped

Use an action when a tap, hold, or double tap should open details, toggle an entity, run a Home Assistant action, navigate, open a URL, or start Assist.

See Actions.

Show, hide, or disable something

Use visibility when an item or group should appear only in a certain situation, or when a control should temporarily be unavailable.

See Visibility.

Animate a state change

Use animations when an item should visibly react to a matching entity state.

See Animations.

Let the user change a value

Buttons, toggles, selectors, number controls, and sliders are visible controls inside the card.

See Interactive controls.