feat(link): support link with icon

This commit is contained in:
Eric Y Liu 2021-04-30 16:46:47 -07:00
commit 7e108acead
5 changed files with 48 additions and 10 deletions

View file

@ -19,6 +19,12 @@ export interface LinkProps
*/
inline?: boolean;
/**
* Specify the icon from `carbon-icons-svelte` to render
* `inline` must be `false`
*/
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
/**
* Set to `true` to disable the checkbox
* @default false