Skip to main content

RunQueryButton

This button component is used for running queries. It supports four query states: idle, loading, success, and error.

Import

import { RunQueryButton } from '@dynatrace/strato-components-preview/buttons';

Use cases

Change button states

Use the queryState prop to transition between the button's states.

CodeSandbox

Props

RunQueryButtonProps

extends, , , ,
NameTypeDefaultDescription
disabled?
falseWhen the run query button is disabled it cannot be interacted with.
queryState?
idleThe current button state.
onClick?
-Callback triggered when the RunQueryButton is interacted with.
cancelable?
trueWhether the run query button is cancelable, i.e., if the loading state can be interrupted.
Still have questions?
Find answers in the Dynatrace Community