import type { ReactElement, HTMLAttributes, Ref } from "react"; import type SlTagElement from "@shoelace-style/shoelace/dist/components/tag/tag.js"; import { SlRemoveEvent } from "../events"; export type { SlTagElement }; export type SlTagRemoveEvent = SlRemoveEvent; export interface SlTagProps extends HTMLAttributes { ref?: Ref; /** * The tag's theme variant. */ variant?: "primary" | "success" | "neutral" | "warning" | "danger" | "text"; /** * The tag's size. */ size?: "small" | "medium" | "large"; /** * Draws a pill-style tag with rounded edges. */ pill?: boolean; /** * Makes the tag removable and shows a remove button. */ removable?: boolean; /** * Emitted when the remove button is activated. */ onSlRemove?: (event: SlTagRemoveEvent) => void; /** * Emitted when the remove button is activated. */ onSlRemoveCapture?: (event: SlTagRemoveEvent) => void; } /** * Tags are used as labels to organize things or to indicate a selection. */ export default function SlTag( props: SlTagProps, ): ReactElement;