Docs
Tooltip

Tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

Loading...

Installation

	npx svell@latest add tooltip

Usage

	<script lang="ts">
  import * as Tooltip from "$lib/components/ui/tooltip";
</script>
 
<Tooltip.Root>
  <Tooltip.Trigger>Hover</Tooltip.Trigger>
  <Tooltip.Content>
    <p>Add to library</p>
  </Tooltip.Content>
</Tooltip.Root>

Built & designed by shadcn. Ported to Svelte by netronk. The source code is available on GitHub.