Blog 16 - Search with live resultsPro
A centered search field filters posts by title and excerpt as you type, highlighting matches and showing a result count and empty state.
About Blog 16
A centered search field filters posts by title and excerpt as you type, highlighting matches and showing a result count and empty state.
Blog 16 is a pro blog block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 124 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.
- search
- input
- filter
- highlight
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/blog-16Dependencies installed automatically: lucide-react, motion.
Uses: input, reveal, use-reduced-motion, utils.
Usage
import Blog16 from "@/components/blocks/blog-16"
export default function Page() {
return <Blog16 />
}