import { SvelteComponent, Snippet } from 'svelte'; import { HTMLAttributes } from 'svelte/elements'; export interface Props { class?: string; onClick?: (e: any) => void; /** * Component's HTML Element * * @default 'div' */ component?: string | typeof SvelteComponent; /** * Object with Tailwind CSS colors classes * */ colors?: { /** * * @default 'text-current' */ fillTextIos?: string; /** * * @default 'text-md-light-on-secondary-container dark:text-md-dark-on-secondary-container' */ fillTextMaterial?: string; /** * * @default 'bg-black/10 dark:bg-white/10' */ fillBgIos?: string; /** * * @default 'bg-md-light-secondary-container dark:bg-md-dark-secondary-container' */ fillBgMaterial?: string; /** * * @default 'text-current' */ outlineTextIos?: string; /** * * @default 'text-md-light-on-surface dark:text-md-dark-on-surface' */ outlineTextMaterial?: string; /** * * @default 'border-black/20 dark:border-white/20' */ outlineBorderIos?: string; /** * * @default 'border-md-light-outline dark:border-md-dark-outline' */ outlineBorderMaterial?: string; }; /** * Content of the chip media area (e.g. icon) */ media?: Snippet | string; /** * Defines whether the Chip has additional "delete" button or not * * @default false */ deleteButton?: boolean; /** * Makes chip outline * * @default false */ outline?: boolean; /** * Event will be triggered on Chip delete button click */ onDelete?: (e: any) => void; } interface ChipProps {} interface ChipProps extends Props {} interface ChipEvents extends Record<'',{}>{} declare class Chip extends SvelteComponent< ChipProps & Omit, keyof Props>, ChipEvents, { } > {} export default Chip;