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
| Prop | Type | Default | Description |
|---|---|---|---|
| onRefresh* | () => void | β | Callback fired when the button is clicked. |
| loading | boolean | false | When true, disables the button and shows a spinner. |