For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Hover Card

For sighted users to preview content available behind a link.

import { CalendarIcon } from "lucide-react";

import { Button } from "@/components/button/button";
import {
  HoverCard,
  HoverCardContent,

Installation

$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/hover-card.json

Usage

import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/components/ui/hover-card/hover-card";
<HoverCard>
  <HoverCardTrigger>Hover</HoverCardTrigger>
  <HoverCardContent>Preview content</HoverCardContent>
</HoverCard>

Composition

Use the following composition to build a Hover Card:

HoverCard
├── HoverCardTrigger
└── HoverCardContent

RTL

To enable right-to-left support, see the RTL guide.

"use client";

import { CalendarIcon } from "lucide-react";

import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";

API Reference

See the Base UI documentation for the full API.