View Source Shino.UI.Tooltip (shino v0.2.0-alpha.1)

Provides tooltip related components.

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

Examples

<Tooltip.root>
  <Tooltip.trigger>
    Hover Me
  </Tooltip.trigger>
  <Tooltip.content>
    Here is a tooltip.
  </Tooltip.content>
</Tooltip.root>

References

Summary

Functions

Render a tooltip content.

The root contains all the parts of a tooltip.

Renders a tooltip trigger.

Functions

Render a tooltip content.

Attributes

  • class (:any) - Defaults to nil.
  • side (:string) - Defaults to "bottom".
  • align (:string) - Defaults to "center".
  • Global attributes are accepted.

Slots

  • inner_block (required)

The root contains all the parts of a tooltip.

Attributes

  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

Renders a tooltip trigger.

Slots

  • inner_block (required)