IHoverProps

interface
Interaction & State

Prop contract for components that expose a controllable hover state — accepts a boolean to force-enable hover or an IHoverState object for per-property overrides while hovered.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

hover
boolean | IStateEffectConfig
Controls the hover state: undefined/false = natural mouseenter/leave; true = forced on; IHoverState object = natural tracking with per-property visual overrides (color, bgColor, border, rounded, elevation, padding, margin, gap) while hovered.
hoverClass
string

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Using IHoverProps with an object state override

html