Resource 1 - Ebook detail with cover and gated download form

A resource detail section with a tilted ebook cover, format and page metadata, a "What's inside" chapter checklist and a sticky lead-capture form that swaps to a download button after submit. Use it for gated ebooks, whitepapers and reports on a content marketing hub.

About Resource 1

A resource detail section with a tilted ebook cover, format and page metadata, a "What's inside" chapter checklist and a sticky lead-capture form that swaps to a download button after submit. Use it for gated ebooks, whitepapers and reports on a content marketing hub.

Resource 1 is a free resource block for React, built on shadcn/ui and Tailwind CSS. It ships as 136 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • resource
  • ebook
  • whitepaper
  • download
  • lead-capture
  • gated-content

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/resource-01

Dependencies installed automatically: lucide-react.

Uses: button, input, label, reveal, utils.

Usage

import Resource01 from "@/components/blocks/resource-01"

export default function Page() {
  return <Resource01 />
}

FAQ