RefreshIconButton
An icon button that refreshes the active queries, as <RefreshButton> does.
Installation
pnpm dlx shadcn@latest add @chelone/refresh-icon-buttonAn icon button that refreshes the active queries, as <RefreshButton> does.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — | |
| icon | ReactNode | — | |
| label | string | — | 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 | — |