Alternating Features
Features as alternating rows of text and visual, with a checklist per row.
Installation
npx shadcn@latest add @venusui/features-03Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Files added to your project
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/features-03.tsx
Usage
The code behind the preview above.
features-03-demo.tsx
import { Features03 } from "@/components/features-03"
export default function Features03Demo() {
return <Features03 />
}
API reference
No props. Rows are in the rows array at the top of the file.
Requirements
lucide-react, React 19 and Tailwind CSS v4. Works in Server Components.
Customization
- Add or remove rows in the
rowsarray; sides alternate automatically on large screens. - Replace the grey panel with an
<img>or video for each row.
Accessibility
- Each row has its own
h2. Visual placeholders arearia-hidden; give real imagesalttext.
Troubleshooting
- Rows don’t alternate.
- Alternation uses
lg:order-2on odd rows and starts at thelgbreakpoint. Unknown registry "@venusui"- Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (
npx shadcn@latest), install by URL, or register it with its address:npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json. No components.json found- Run
npx shadcn@latest initin your project first.