Back to blocks
Kibo UI
npx shadcn@latest add https://ui.doras.to/r/preview.json

API Reference

Root

Contains all root functionality.

PropTypeDefault
url*string-
childrenReact.ReactNode-
showImagebooleantrue
showTitlebooleantrue
showDescriptionbooleantrue
classNamestring-
contentClassNamestring-
onError(error: Error) => void-

Examples

Hide the image

Preview without displaying the OpenGraph image in the hover card.

Custom trigger

Using a custom button as the trigger element for the URL preview hover card.