Pattern lab / 01

Button feedback

Show the difference between an action, a selection, and a keyboard route.

The controls change this open page only. Reload restores the initial example.

The reference content is readable. Interactive controls remain unavailable until JavaScript initializes.

A local action

One press. One visible result.

Add the three sample items. The same button becomes unavailable when the bounded set is complete.

0 of 3 sample items added

Three original sample items are available. Completion moves focus to Reset example.

    No items have been added.

    A persistent selection

    Pressed can also mean selected.

    Preview emphasis: off.

    A small reference card

    Its emphasis follows the toggle, rather than your pointer or keyboard focus.

    The button name stays constant. Its pressed state and this card's boundary carry the persistent choice.

    Read the signals separately.

    Hover / active

    A temporary response

    Hover changes the boundary. An active press changes the button's fill immediately. Releasing it ends that temporary response.

    Focus

    A keyboard location

    A visible outline marks the current keyboard target. It remains distinct from an item's added state and the toggle's selected state.

    Outcome

    A useful next step

    The list and count record the result. Once all three items are present, the unavailable action explains why and focus moves to the available reset.

    Original implementation, clear provenance.

    Original Interface Atlas code, example content and composition by Tamir (Phi Vuong Tuong Tam), with Codex AI assistance. The neutral palette is a local reference choice, rather than an implementation of every Atlas theme. No third-party component code, artwork or font binary is included.

    Read the pattern rules · Source creators and reuse terms · Actual validation and limits