What are Blocks?
Blocks refers to a reusable component or module in a design system. They are built on CSS variables and styles provided by shadcn/ui to quickly create a consistent and beautiful UI in your application.
What is the difference between Blocks and components?
Blocks is a collection of higher-order components,including:
header , footer , hero , features , subscribe, waitlist, faq , pricing , testimonials , cta , usage, login, brand and contact
Components are components of Blocks, they are the smallest units of Blocks, used to build Blocks.
How to use Blocks?
The data ofBlocks is configured through config.ts, and you only need to introduce Blocks where you need it, such as our Landing Page:
hero.tsx