Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Popups

Preview Trigger

Display an interactive popover on hover, focus, or long press.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/preview-trigger

Usage

import { Link } from "@/components/ui/preskok-ui/link"
import {
  PreviewContent,
  PreviewTrigger,
} from "@/components/ui/preskok-ui/preview-trigger"

export function PreviewTriggerDemo() {
  return (
    <PreviewTrigger>
      <Link href="/vehicles/volvo-ex30">Volvo EX30</Link>
      <PreviewContent className="p-4">
        Interactive preview content
      </PreviewContent>
    </PreviewTrigger>
  )
}

Preview content opens after a warmup delay on hover or focus and on long press for touch input. While it is open, Tab moves focus into the popover and

Escape closes it and restores focus.

Popover

A popover component for displaying content in an overlay.

Sheet

A sheet component that slides in from different sides with blur effects.

On this page

Installation
Usage

Compare 2025 Volvo EX30 and 2024 Cupra Born.