This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
//! This example illustrates how to create a button that changes color and text based on its //! interaction state. use ; const NORMAL_BUTTON: Color = rgb; const HOVERED_BUTTON: Color = rgb; const PRESSED_BUTTON: Color = rgb;