Skip to content

Commit

Permalink
docs(tag): add "Tooltip in a tag" example
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Mar 6, 2024
1 parent 44a2989 commit ff54433
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/src/pages/components/Tag.svx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import { Tag } from "carbon-components-svelte";
import { Tag, TooltipDefinition } from "carbon-components-svelte";
import IbmCloud from "carbon-icons-svelte/lib/IbmCloud.svelte";
import Preview from "../../components/Preview.svelte";
</script>
Expand Down Expand Up @@ -58,6 +58,14 @@ The filterable and interactive tag variants have a disabled state.
<Tag filter disabled>Machine learning</Tag>
<Tag interactive disabled>Machine learning</Tag>

## Tooltip in a tag

<Tag>
<TooltipDefinition tooltipText="IBM Corporate Headquarters is based in Armonk, New York.">
Armonk
</TooltipDefinition>
</Tag>

## Skeleton

<Tag skeleton />
Expand Down

0 comments on commit ff54433

Please sign in to comment.