# `Clarity.Vertex.TooltipProvider`
[🔗](https://github.com/team-alembic/clarity/blob/v0.6.0/lib/clarity/vertex/tooltip_provider.ex#L1)

Protocol for providing tooltip content for vertices.

This protocol allows vertices to specify their tooltip content,
which is displayed when hovering over the vertex in graph visualizations.

Note: This component is rendered for every vertex in the graph, so it
should be efficient.

# `t`

```elixir
@type t() :: term()
```

All the types that implement this protocol.

# `tooltip`

```elixir
@spec tooltip(t()) :: iodata() | nil
```

Returns the tooltip content for this vertex.

Returns iodata that will be rendered as markdown, or nil if no tooltip
should be displayed.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
