Demo Request Modal
A lead-capture modal: a demo-scheduling form (name, work email, company, team size and a preferred time window) with a success state, on the DBS modal surface. Harvested from By The Book.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/demo-request-modal.jsonDependencies:
lucide-reactUses:modal
Usage
demo-request-modal-example.tsx
"use client";
import { useState } from "react";
import { DemoRequestModal } from "@dbs/ui";
export default function DemoRequestModalExample() {
const [open, setOpen] = useState(false);
return (
<div className="p-10">
<button
onClick={() => setOpen(true)}
className="inline-flex items-center rounded-full bg-ink px-6 py-3 text-sm font-medium text-canvas transition-colors hover:bg-ink/85"
>
Schedule a demo
</button>
<DemoRequestModal
open={open}
onOpenChange={setOpen}
description="See how the platform automates onboarding, review and ongoing monitoring."
/>
</div>
);
}