Active State: Background Color Change

This example demonstrates changing an element's background color when it's being clicked (active state).

Notice the background color becomes bg-blue-800 only while the mouse button is pressed down.