import { SvelteComponentTyped } from "svelte"; import type { ButtonProps } from "../Button/Button.svelte"; type $Props = { /** * Specify the kind of button. * A quick action is always `"ghost"`. * @default "primary" */ kind?: "primary" | "secondary" | "tertiary" | "ghost" | "danger"; /** * Specify the size of button. * A quick action is always `"small"`. * Falls back to the height of a parent `Form`'s size, as Button does. * @default "default" */ size?: "default" | "field" | "small" | undefined; /** * Set to `true` to render a quick action: a small, outlined pill, such * as a suggested reply under a chat message. * @default false */ quickAction?: boolean; /** * Set to `true` to mark a quick action as selected. * Screen readers hear it as a pressed toggle button. * Only applies to quick actions. * @default false */ selected?: boolean; /** * Specify the icon to render. */ icon?: Icon | undefined; /** * Obtain a reference to the HTML element. * @default null */ ref?: null | HTMLAnchorElement | HTMLButtonElement; children?: (this: void) => void; }; export type ChatButtonProps = Omit> & $Props; export default class ChatButton extends SvelteComponentTyped< ChatButtonProps, { blur: WindowEventMap["blur"]; click: WindowEventMap["click"]; focus: WindowEventMap["focus"]; mousedown: WindowEventMap["mousedown"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record } > {}