Back to Components
Content
Link Preview
OpenGraph style preview card with image, title, description, and domain.
PropsUsage ExampleVariations
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/link-preview.tsx
Installation
Using shadcn CLI
npx shadcn add link-preview --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-mergeRelated Content Components
Changelog Entry
Version entry with tags, date, and collapsible details.
Code Block
Code display with optional highlighted HTML and a copy button.
Code Diff
Side by side code diff viewer with line numbers and highlights.
Quote Block
Styled blockquote with attribution and optional avatar.
Terminal Window
Retro terminal window with title bar, prompt, and typing effect.