DDBS UI
modals

Article Modal

A reader dialog for articles, guides and notices: meta row, image, lead paragraph, scrolling body and a takeaway box.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/article-modal.json
Dependencies:lucide-react
Fullscreen

Usage

article-modal-example.tsx
"use client";

import { useState } from "react";
import { ArticleModal } from "@dbs/ui";

export default function ArticleModalExample() {
  const [open, setOpen] = useState(false);
  return (
    <>
      <button type="button" onClick={() => setOpen(true)} className="h-11 rounded-full bg-ink px-6 text-sm font-medium text-canvas">Read article</button>
      <ArticleModal
        open={open}
        onOpenChange={setOpen}
        article={{
          category: "Insights",
          date: "12 March 2026",
          readTime: "5 min read",
          title: "How early-stage teams plan their first round",
          excerpt: "Fundraising rewards clear numbers, a sharp story and investors who fit the ambition of the company.",
          image: { src: "/samples/hero-meadow.jpg", alt: "A meadow at sunrise" },
          body: [
            "Capital markets keep moving toward efficiency and defensible technology. When you plan a round, building real conviction with a lead partner early creates momentum without any theatre.",
            "Start with the numbers a partner will ask for in the first meeting: growth, retention, burn and runway. Keep them on one page and make every figure traceable to its source.",
            "Then decide who you want in the room. A short list of five aligned firms beats a long list of fifty polite ones.",
          ],
          takeaway: { title: "Key takeaway", text: "Prepare one page of numbers, five aligned investors and a story that fits in two minutes." },
        }}
      />
    </>
  );
}