import type { ClassValue } from 'svelte/elements'; import { type IconName } from './icon'; interface Props { /** The text in the pill. */ value: string; /** Optional URL that the hyperlink points to. */ href?: string; /** Optional target for linked URL. */ target?: '_self' | '_blank' | '_parent' | '_top'; /** Optional variant for visual distinction */ variant?: 'dark' | 'base' | 'info' | 'warning'; /** Whether or not the pill has the aria-readonly attribute. If readonly, there is not a button to onRemove the pill. */ readonly?: boolean; /** Whether or not the pill is disabled. */ disabled?: boolean; /** Whether or not the pill is removable. If removable, and not readonly, there is a button to onRemove the pill. */ removable?: boolean; /** The icon shown in the button. */ icon?: IconName; /** Tooltip for the icon in the pill */ iconTooltip?: string; /** Additional CSS classes to pass to the pill icon. */ iconCx?: ClassValue; /** Additional CSS classes to pass to the pill. */ cx?: ClassValue; /** Callback function to handle removing the pill */ onRemove?: (value: string) => void; } /** * For displaying a list of items. * * ```svelte * handleRemove(value)} /> * ``` */ declare const Pill: import("svelte").Component; type Pill = ReturnType; export default Pill;