HomeDocsComponentsBlocksChartsThemes
Introduction
  • Introduction
  • Installation
  • Themes
  • Artwork
  • llms.txt
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Meter
  • Multi Select
  • Native Select
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
AI
  • Message Scroller
  • Message
  • Bubble
  • Marker
  • Attachment
  • Questionnaire
  • Composer
  • Reasoning
  • Tool Call
  • Approval Card
  • Citations
Blocks
  • Airtable
  • Airtable Kanban
  • CRM
  • ClickUp List
  • ClickUp Kanban
  • Repeatable Group
  • Command Palette
  • App Shell
  • Record Files
  • Settings Shell
  • Help Panel
  • Note Editor
  • Email Drafts
  • Task List
  • Notifications Panel
  • Dual Pane Sidebar
  • Team Members Panel
  • Mix Pack Builder
  • Record Picker and Date Quick-pick
  • Record List
  • Record Page
  • Sign In and Sign Up
  • Availability Scheduler
  • AI Chat
  • AI Assistant
  • Voice Message
  • Action Bar
  • Notion
  • Banking
  • Lineup Builder
  • Sports Score
  • Standings
  • Strava
  • Sheets
  • Notices
  • Settings
  • Billing
Templates
  • Sign In Page
  • Upload Page
  • Showcase Onboarding
  • Agreement Sign
  • Email
  • Email Composer
  • Share Dialog
  • Integrations
  • Transactions
  • Analytics
Utilities
  • motion
  • sounds
  • scroll-fade
  • shimmer
Another UI. Built on shadcn/ui with Phosphor icons.

Hover Card

PreviousNext

A popover that appears on hover, focus, or long press to preview content available behind a link.

UI SDKBase UIReact AriaRadix UI

Set "style": "aria-nova" in components.json. Customize in /create

@nextjs
The React Framework – created and maintained by @vercel.
Joined December 2021
"use client"

import { Button } from "@/components/ui/button"

Installation#

pnpm dlx shadcn@latest add https://anotherui.dev/r/hover-card.json

Usage#

import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/components/ui/hover-card"
<HoverCard>
  <HoverCardTrigger asChild>
    <Button variant="link">Hover</Button>
  </HoverCardTrigger>
  <HoverCardContent>
    The React Framework – created and maintained by @vercel.
  </HoverCardContent>
</HoverCard>

Composition#

Use the following composition to build a HoverCard:

HoverCard
├── HoverCardTrigger
│   └── Button
└── HoverCardContent

Delays#

Use openDelay (React Aria's delay works too) and closeDelay on HoverCard to control when the card opens and closes.

<HoverCard openDelay={100} closeDelay={200}>
  <HoverCardTrigger asChild>
    <Button variant="link">Hover</Button>
  </HoverCardTrigger>
  <HoverCardContent>Content</HoverCardContent>
</HoverCard>

Positioning#

Use side and align on HoverCardContent to control placement. React Aria's own placement works too and wins.

<HoverCard>
  <HoverCardTrigger asChild>
    <Button variant="link">Hover</Button>
  </HoverCardTrigger>
  <HoverCardContent side="top">Content</HoverCardContent>
</HoverCard>

Basic#

@nextjs
The React Framework – created and maintained by @vercel.
Joined December 2021
"use client"

import { Button } from "@/components/ui/button"

Sides#

Hover Card

This hover card appears on the left side of the trigger.

Hover Card

This hover card appears on the top side of the trigger.

Hover Card

This hover card appears on the bottom side of the trigger.

Hover Card

This hover card appears on the right side of the trigger.

"use client"

import { Button } from "@/components/ui/button"

RTL#

To enable RTL support, see the RTL configuration guide.

سماعات لاسلكية
٩٩.٩٩ $
سماعات لاسلكية
٩٩.٩٩ $
سماعات لاسلكية
٩٩.٩٩ $
سماعات لاسلكية
٩٩.٩٩ $
سماعات لاسلكية
٩٩.٩٩ $
سماعات لاسلكية
٩٩.٩٩ $
"use client"

import {

API Reference#

See the React Aria documentation for more information.

Form GuideIcon Tile

On This Page

InstallationUsageCompositionDelaysPositioningBasicSidesRTLAPI Reference