Plan Comparison Table
Two plans compared feature by feature in an accessible table.
Installation
npx shadcn@latest add @venusui/pricing-02Run 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/pricing-02.tsx
Also adds the shadcn button component if your project doesn't have it yet.
Usage
The code behind the preview above.
pricing-02-demo.tsx
import { Pricing02 } from "@/components/pricing-02"
export default function Pricing02Demo() {
return <Pricing02 />
}
API reference
No props. Plans and features are arrays at the top of the file.
Requirements
- shadcn
button. The CLI installs it. lucide-react, React 19 and Tailwind CSS v4.
Customization
- In
features, usetrue/falsefor a check or dash, or a string such as"Unlimited". - Add a third plan by extending
plansand adding a matching key to each feature row and cell.
Accessibility
- A real
tablewith a caption, column headers and row headers, so screen readers announce “Pro, Custom domains, Included”. - Checks and dashes have hidden text (“Included” / “Not included”).
Troubleshooting
- The table is cut off on phones.
- It scrolls sideways inside its rounded frame; that’s intended for tables.
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.