Type HoverCardOptions
type HoverCardOptions struct {
Layer uint16
// ID names the card for its entrance and exit: while the application paints
// the card under one ID it fades in, and once it stops it fades out. Leave it
// zero for a card that appears and disappears at once.
ID ui.ID
// DismissID, when set with ID, makes the card dismiss on Escape and on a
// press outside it. The press is passed on to the control beneath, as a
// non-modal preview card's is. The card surface is a group hit, so the
// pointer can move into it and keep it open.
DismissID ui.ID
Side HoverCardSide
Align HoverCardAlign
SideOffset float32
// AlignOffset shifts the card along the anchor's edge; zero means Base UI's
// default of 4 (HoverCardContent's alignOffset).
AlignOffset float32
// ContentSize.Width defaults to 256 (`w-64`). A zero ContentSize.Height sizes
// the card to its parts: the header (its description wraps to the width) and,
// under it, BodyHeight.
ContentSize ui.Size
BodyHeight float32
}HoverCardOptions describes one synchronous preview surface.