UNPKG

compote-ui

Version:

An opinionated UI component library for Svelte, built on top of [Ark UI](https://ark-ui.com) with additional components and features not available in the core Ark UI library.

12 lines (11 loc) • 547 B
type Props = { /** Called on click. If it returns a promise, the button shows a busy state until it settles. */ onRefresh: () => void | Promise<unknown>; /** Force the busy state, e.g. when a refresh is triggered elsewhere. */ loading?: boolean; /** Text label for the trigger. When omitted, a refresh icon is shown instead. */ triggerLabel?: string; }; declare const DataTableRefresh: import("svelte").Component<Props, {}, "">; type DataTableRefresh = ReturnType<typeof DataTableRefresh>; export default DataTableRefresh;