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 shadcn-svelte@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>