Menu
Components
Hover Card
Live compiled demo for the Hover Card component contract.
Ada Lovelace
First programmer and analytical engine collaborator.
| data-state | open, closed, disabled |
|---|---|
| keyboard | Focus opens the hover card; Escape closes it |
| change reasons | trigger-pointer-enter, trigger-pointer-leave, trigger-focus, trigger-blur, content-pointer-enter, content-pointer-leave, content-focus, content-blur, escape-key, programmatic |
Usage
A rich preview card that opens on hover or focus of its trigger.
- Import the versioned component from
@kovojs/ui/hover-card. - Copy the source into your app with
kovo add hover-cardwhen product code should own the implementation.
Source
- Package source:
packages/ui/src/hover-card.tsx - Gallery fixture:
examples/gallery/src/demo-fixtures.tsx - Interactive demo:
examples/gallery/src/interactive/hover-card-demo.tsx
Behavior contract
The rendered fixture above includes the component contract table. Interactive pages compile the authored TSX demo and then lift the same contract table from the static fixture, so the visible behavior and documented ARIA/data-state surface stay together.