Component

RefreshButton

Icon button that triggers a data reload. Shows a spinning indicator while loading.

Idle

live editor β€” edit to update preview
<RefreshButton onRefresh={() => {}} />

Loading

live editor β€” edit to update preview
<RefreshButton onRefresh={() => {}} loading />

Props

PropTypeDefaultDescription
onRefresh*() => voidβ€”Callback fired when the button is clicked.
loadingbooleanfalseWhen true, disables the button and shows a spinner.