Elemental.Tooltip (elemental v0.1.0)

Exposing Daisy tooltips as Phoenix components.

Summary

Functions

Provides a Phoenix functional component wrapping the tooltip CSS based component.

Functions

tooltip(assigns)

Provides a Phoenix functional component wrapping the tooltip CSS based component.

Wrap a given inner slot with a div defining the tooltip attribute, and maps the given attributes to useful tooltip properties.

Attributes

  • tip (:string) (required) - The text of the tooltip to display.
  • position (:string) - The positioning of the tooltip. Defaults to "top".
  • color (:string) - The color to use for the tooltip. Defaults to "primary".
  • open (:boolean) - Where to have the tooltip open immediately. Defaults to false.

Slots

  • inner_block (required)