RefreshIconButton

An icon button that refreshes the active queries, as <RefreshButton> does.

Installation

pnpm dlx shadcn@latest add @chelone/refresh-icon-button

An icon button that refreshes the active queries, as <RefreshButton> does.

Props

PropTypeDefaultDescription
asChildboolean—
iconReactNode—
labelstring—A message key, translated with itself as the fallback.
onClick(event: MouseEvent<HTMLButtonElement>) => void—
size"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null—
variant"link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null—