DocsComponentsTemplatesThemesGitHub

Pricing

Three plans side by side.

Install

npx shadcn@latest add https://design.fruitlabs.online/r/template-pricing.json

Code

import { Badge, Button, Card, Grid, Stack } from '@fruit-labs/design';

const plans = [
  { name: 'Free', price: '$0', features: ['1 project', 'Community help'] },
  { name: 'Pro', price: '$12', features: ['Unlimited projects', 'Email support', 'Exports'], best: true },
  { name: 'Team', price: '$29', features: ['Everything in Pro', 'Shared workspaces', 'Roles'] },
];

export default function Template() {
  return (
    <Grid min={220}>
      {plans.map((p) => (
        <Card key={p.name} title={p.name} actions={p.best && <Badge tone="accent">Popular</Badge>}>
          <Stack gap={3}>
            <strong style={{ fontSize: 34 }}>{p.price}<small style={{ fontSize: 14 }}> / month</small></strong>
            <ul style={{ margin: 0, paddingInlineStart: 18 }}>
              {p.features.map((f) => <li key={f}>{f}</li>)}
            </ul>
            <Button block variant={p.best ? 'filled' : 'gray'}>Choose {p.name}</Button>
          </Stack>
        </Card>
      ))}
    </Grid>
  );
}