carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
29 lines (22 loc) • 789 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type $RestProps = SvelteHTMLElements["div"];
type $Props = {
/**
* Override the total items selected text
* @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected`
*/
formatTotalSelected?: (totalSelected: number) => string;
/**
* Use a boolean to show or hide the toolbar
* @default undefined
*/
active?: undefined | boolean;
[key: `data-${string}`]: any;
};
export type ToolbarBatchActionsProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ToolbarBatchActions extends SvelteComponentTyped<
ToolbarBatchActionsProps,
{ cancel: CustomEvent<null> },
{ default: {}; cancel: {} }
> {}