Pricing Card
A row of plan cards with title, price, feature list and call to action, where the featured plan is lifted out with a glow and a Badge overlapping its top edge.
Preview
Code
Example.jsx
import { Badge, BlockStack, Box, Button, ButtonGroup, Card, InlineStack, Text } from '@shopify/polaris';
const PLANS = [
{
title: 'Standard',
description: 'This is a great plan for stores that are just starting out',
price: '$19',
frequency: 'month',
features: [
'Process up to 1,000 orders/mo',
'Amazing feature',
'Another really cool feature',
'24/7 Customer Support',
],
},
{
title: 'Advanced',
featuredText: 'Most Popular',
description: 'For stores that are growing and need a reliable solution to scale with them',
price: '$49',
frequency: 'month',
features: [
'Process up to 10,000 orders/mo',
'Amazing feature',
'Another really cool feature',
'24/7 Customer Support',
],
},
{
title: 'Premium',
description: 'The best of the best, for stores that have the highest order processing needs',
price: '$99',
frequency: 'month',
features: [
'Process up to 100,000 orders/mo',
'Amazing feature',
'Another really cool feature',
'24/7 Customer Support',
],
},
];
const PlanCard = ({ title, description, price, frequency, features, featuredText }) => (
<div
style={{
width: '18rem',
boxShadow: featuredText ? '0px 0px 15px 4px #CDFEE1' : 'none',
borderRadius: '0.75rem',
position: 'relative',
zIndex: 0,
}}
>
{featuredText ? (
<div style={{ position: 'absolute', top: '-15px', right: '6px', zIndex: 100 }}>
<Badge size="large" tone="success">
{featuredText}
</Badge>
</div>
) : null}
<Card>
<BlockStack gap="400">
<BlockStack gap="200" align="start">
<Text as="h3" variant="headingLg">
{title}
</Text>
<Text as="p" variant="bodySm" tone="subdued">
{description}
</Text>
</BlockStack>
<InlineStack blockAlign="end" gap="100" align="start">
<Text as="p" variant="heading2xl">
{price}
</Text>
<Box paddingBlockEnd="200">
<Text as="p" variant="bodySm">
/ {frequency}
</Text>
</Box>
</InlineStack>
<BlockStack gap="100">
{features.map((feature) => (
<Text key={feature} tone="subdued" as="p" variant="bodyMd">
{feature}
</Text>
))}
</BlockStack>
<Box paddingBlockStart="200" paddingBlockEnd="200">
<ButtonGroup fullWidth>
<Button variant="primary" onClick={() => null}>
Select Plan
</Button>
</ButtonGroup>
</Box>
</BlockStack>
</Card>
</div>
);
export const Example = () => {
return (
<InlineStack gap="600" align="center" blockAlign="start">
{PLANS.map((plan) => (
<PlanCard key={plan.title} {...plan} />
))}
</InlineStack>
);
};