Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
ManualRefreshButton
Renders the standard refresh icon button with an in-progress state.
Import
import { ManualRefreshButton } from "@dartwic/interface-sdk/ui";Declaration
export const ManualRefreshButton: HostComponent<ManualRefreshButtonProps>;ManualRefreshButtonProps
Props for the standard refresh icon button.
export interface ManualRefreshButtonProps extends ButtonProps {
/** Tooltip and accessible label. */
tooltip?: string;
/** Shows the spinning refresh state and disables the button. */
isRefreshing?: boolean;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
tooltip | string | Optional | Tooltip and accessible label. |
isRefreshing | boolean | Optional | Shows the spinning refresh state and disables the button. |
variant | "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | Optional | Visual style preset. |
size | "default" | "sm" | "lg" | "icon" | Optional | Size preset. |
asChild | boolean | Optional | Render through the host’s slot component. |
onClick | HostEventHandler | Optional | Click event handler. |
disabled | boolean | Optional | Disables interaction. |
type | "button" | "submit" | "reset" | string | Optional | Native button type. |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |