grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
133 stars 20 forks source link

feature request: SceneToolbarButton should support text and tooltips #862

Open joeblubaugh opened 1 month ago

joeblubaugh commented 1 month ago

SceneToolbarButton has a state object:

interface ToolbarButtonState extends SceneObjectState {
    icon: IconName;
    onClick: () => void;
}

but this doesn't support a text value, which is a pretty important usability and accessibility feature. It also doesn't support a tooltip, so hovering also can't be used to understand the control's function.

The rendered HTML also doesn't include information that can be used to understand the button's purpose.