Link Preview
Overlays · Guide 12 of 46
Open the live Link Preview demo →
Purpose
Rich hover card preview for a link.
Import
<script lang="ts">
import { LinkPreview } from 'bits-ui';
</script>The registry names LinkPreview as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.
Usage checklist
- Give the trigger and surfaced content useful accessible names.
- Verify focus entry, Escape behavior, and focus restoration.
- Test viewport collisions, page scrolling, and stacking with other overlays.
Secondary reference
After using the local example, consult the upstream Bits UI reference for exhaustive API details.
Continue
- Previous: Tooltip
- Index: All component guides
- Next: Dropdown Menu