mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
feat(tag): support custom icon variant
This commit is contained in:
parent
0c8393637a
commit
b2560a21ac
6 changed files with 46 additions and 3 deletions
5
types/Tag/Tag.d.ts
vendored
5
types/Tag/Tag.d.ts
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue