Back to Components
Cards

Embed Card

Embeddable content card with responsive iframe support.

Product walkthrough

Responsive embeds for videos, tweets, and code demos.

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/embed-card.tsx

Installation

Using shadcn CLI

npx shadcn add embed-card --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge