Skip to content

Commit

Permalink
feat(docs): added Tooltip story
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorromeo committed Nov 26, 2023
1 parent 67527d4 commit 6c1612e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions apps/docs/src/stories/Components/Tooltip.story.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<doc-page title="Tooltip">
<template #description>A <b>tooltip</b> is in-app messaging used to identify elements on a page with short, clarifying text.</template>

<template #apidocs>
<component-info src="packages/core/src/components/Tooltip/Tooltip.vue" />
<component-info src="packages/core/src/components/Tooltip/TooltipArrow.vue" />
<component-info src="packages/core/src/components/Tooltip/TooltipContent.vue" />
</template>

<pre v-md>
## Examples
</pre>

<story-canvas title="Basic">
<div style="margin: 100px">
<pf-tooltip>
<template #content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</template>
<pf-button>I have a tooltip!</pf-button>
</pf-tooltip>
</div>
</story-canvas>
</doc-page>
</template>

0 comments on commit 6c1612e

Please sign in to comment.