import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` when the action is an icon-only button in a * `CardFooter` with `actionSet`. It keeps its width and moves to the * inline end, instead of stretching to fill the row. * @default false */ iconOnly?: boolean; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type CardActionProps = Omit<$RestProps, keyof $Props> & $Props; export default class CardAction extends SvelteComponentTyped< CardActionProps, Record, { default: Record } > {}