feat(tag): support custom icon variant

This commit is contained in:
Eric Liu 2021-01-22 13:04:42 -08:00
commit b2560a21ac
6 changed files with 46 additions and 3 deletions

5
types/Tag/Tag.d.ts vendored
View file

@ -43,6 +43,11 @@ export interface TagProps
*/
title?: string;
/**
* Specify the icon from `carbon-icons-svelte` to render
*/
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
/**
* Set an id for the filterable tag
* @default "ccs-" + Math.random().toString(36)