mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(tag): add interactive prop
This commit is contained in:
parent
e931527ff2
commit
c8d295e5d7
6 changed files with 75 additions and 12 deletions
|
@ -9060,6 +9060,16 @@
|
|||
"constant": false,
|
||||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "interactive",
|
||||
"kind": "let",
|
||||
"description": "Set to `true` to render a `button` element instead of a `div`",
|
||||
"type": "boolean",
|
||||
"value": "false",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "skeleton",
|
||||
"kind": "let",
|
||||
|
|
|
@ -44,6 +44,13 @@ Note: rendering a custom icon cannnot be used with the filterable variant.
|
|||
|
||||
<Tag icon={IbmCloud16}>IBM Cloud</Tag>
|
||||
|
||||
### Interactive variant
|
||||
|
||||
Set `interactive` to `true` to render a `button` element instead of a `div`.
|
||||
|
||||
<Tag interactive>Machine learning</Tag>
|
||||
<Tag interactive disabled>Machine learning</Tag>
|
||||
|
||||
### Skeleton
|
||||
|
||||
<Tag skeleton />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue