Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Anatomy
  • Examples
  • Alex Morgan
  • mizen-tokens
  • Controlled and keep mounted
  • Open and close delays
  • Recommendations
  • Usage boundaries
  • API reference

Overlays

Preview Card

Non-modal progressive enhancement presenting supplementary preview content.

idle

Usage

import {
	PreviewCard,
	PreviewCardPopup,
	PreviewCardTrigger,
} from "@mizen-labs/ui";

Anatomy

The parts and how they nest, taken from the preview above.

<PreviewCard>
	<PreviewCardTrigger />
	<PreviewCardPopup />
</PreviewCard>

Examples

Alex Morgan

mizen-tokens

Controlled and keep mounted

A custom popup element that stays mounted.

Open and close delays

Hover intent and pointer travel into the card.

Recommendations

GuidancePractice
Do

Show supplementary context for a linked resource. Keep the destination understandable without the preview.

Usage boundaries

GuidanceBoundary
Scope

Do not put required actions or instructions only in a hover preview. Use Popover for explicit interaction.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
PreviewCardPreviewCardProps<Payload>—Root for hover or focus previews.
PreviewCardTriggerPreviewCardTriggerProps<Payload>—Native link trigger with render, delay, and closeDelay.
PreviewCardPopupPreviewCardPopupProps—Native popup with render, align, sideOffset, anchor, and portalProps.
delaynumber600Trigger hover delay in milliseconds. Keyboard focus opens immediately.
closeDelaynumber300Trigger close delay in milliseconds.
align"start" | "center" | "end"centerAlignment relative to the trigger.
sideOffsetnumber4Distance from the trigger in pixels.
portalPropsPreviewCardPrimitive.Portal.Props—Native portal props including container and keepMounted.
PreviewCardPrimitiveBase UI PreviewCard—Native parts for custom composition.
PreviousPopoverNextSheet

Read about Card composition before grouping workspace settings.

Alex Morgan
mizen-tokens
Preview Card documentation
Hover to preview