View Source Shino.UI.Tooltip (shino v0.1.0-alpha.0)
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
(:string
) - Defaults tonil
.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
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)
Renders a tooltip trigger.
Slots
inner_block
(required)