TidalUI

Hover card preview

An informational profile preview with hover, keyboard focus and phone tap access, plus a persistent screen-reader description.

pro · Feedback · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/hover-card

Import components/ui/tidal.css, components/ui/hover-card.css. Wrap installed components in tidal-scope.

Preview

Hover card component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/hover-card.css";
import{TidalHoverCard}from"./components/ui/hover-card";
export default()=><div className="tidal-scope"><TidalHoverCard accessibleDescription={"Demo"}/></div>;

API and props

TidalHoverCard.accessibleDescription (required)
ReactNode

Required accessible description value accepted by this exported component.

TidalHoverCard.defaultOpen
boolean | undefined

Optional default open value accepted by this exported component.

TidalHoverCard.dir
"ltr" | "rtl" | undefined

Optional dir value accepted by this exported component.

TidalHoverCard.onOpenChange
((open: boolean) => void) | undefined

Callback invoked when the open change interaction is proposed.

TidalHoverCard.open
boolean | undefined

Optional open value accepted by this exported component.

TidalHoverCard.theme
HoverCardTheme | undefined

Optional theme value accepted by this exported component.

TidalHoverCardContent.portalContainer
HTMLElement | null | undefined

Optional portal container value accepted by this exported component.

TidalHoverCardContent.showArrow
boolean | undefined

Optional show arrow value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas