import type { ReactElement, HTMLAttributes, Ref } from "react"; import type SlButtonElement from "@shoelace-style/shoelace/dist/components/button/button.js"; import { SlBlurEvent, SlFocusEvent, SlInvalidEvent } from "../events"; export type { SlButtonElement }; export type SlButtonBlurEvent = SlBlurEvent; export type SlButtonFocusEvent = SlFocusEvent; export type SlButtonInvalidEvent = SlInvalidEvent; export interface SlButtonProps extends HTMLAttributes { ref?: Ref; /** * */ title?: string; /** * The button's theme variant. */ variant?: | "default" | "primary" | "success" | "neutral" | "warning" | "danger" | "text"; /** * The button's size. */ size?: "small" | "medium" | "large"; /** * Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */ caret?: boolean; /** * Disables the button. */ disabled?: boolean; /** * Draws the button in a loading state. */ loading?: boolean; /** * Draws an outlined button. */ outline?: boolean; /** * Draws a pill-style button with rounded edges. */ pill?: boolean; /** * Draws a circular icon button. When this attribute is present, the button expects a single `` in the * default slot. */ circle?: boolean; /** * The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native * `