Button shadow toggle on / off

Is it possible to create a button that can toggle the shadow on and off?

const viewer = new Cesium.Viewer(“cesiumContainer”, {
shadow: false,
});
Now the user should be able to turn on the shadow.

I´m happy about your help. Thanks!