Skip to content

use_hovered

API

counterweight.hooks.use_hovered

use_hovered() -> Hovered
RETURNS DESCRIPTION
Hovered

A record describing which of the calling component's top-level element's content, padding, border, and margin rectangles the mouse is currently inside.

counterweight.hooks.Hovered dataclass

Hovered(
    content: bool, padding: bool, border: bool, margin: bool
)

content instance-attribute

content: bool

padding instance-attribute

padding: bool

border instance-attribute

border: bool

margin instance-attribute

margin: bool