Subscription plan card
Presents pricing details, plan features, and a call-to-action for a subscription tier. Commonly used in pricing sections to help users compare and select plans.
Component
Plan name
0€/monthlyCancel whenever you want
- Feature 1
- Feature 2
- Feature 3
Props
| Props | Default | Type |
|---|---|---|
isActive | false | boolean |
isFeatured | false | boolean |
title | 'Plan name' | string |
description | 'Cancel whenever you want' | string |
monthlyAmount | 0 | number |
yearlyAmount | 0 | number |
currencySymbol | '€' | string |
featuredBadgeText | 'Recommended' | string |
features | An example array | string[] |
hasFeatureListSeparator | false | boolean |
isYearly | false | boolean |
monthlyText | 'monthly' | string |
yearlyText | 'yearly' | string |
showSelectButton | true | boolean |
selectButtonText | 'Get started today' | string |
alignSelectButton | Align.CENTER | Align |
buttonStyle | ButtonStyleType.NEUTRAL_FILLED | ButtonStyleType |
featuredButtonStyle | ButtonStyleType.PRIMARY_BRAND_FILLED | ButtonStyleType |
Usage
isActive
Sets the active state of the card. If true, the card will be marked with a check mark.
<template>
<SubscriptionPlanCard
isActive
/>
</template>
isFeatured
Sets the featured state of the card. If true, a featured badge will be displayed.
<template>
<SubscriptionPlanCard
isFeatured
/>
</template>
title
Sets the title of the card, which can be assigned to the plan name.
<template>
<SubscriptionPlanCard
title="Plan name"
/>
</template>
description
Sets the description of the plan.
<template>
<SubscriptionPlanCard
description="Cancel whenever you want"
/>
</template>
monthlyAmount
Sets the monthly amount of the plan.
<template>
<SubscriptionPlanCard
monthlyAmount="0"
/>
</template>
yearlyAmount
Sets the yearly amount of the plan.
<template>
<SubscriptionPlanCard
yearlyAmount="0"
/>
</template>
currencySymbol
Sets the currency symbol of the plan.
<template>
<SubscriptionPlanCard
currencySymbol="€"
/>
</template>
featuredBadgeText
Sets the text of the featured badge.
<template>
<SubscriptionPlanCard
featuredBadgeText="Recommended"
/>
</template>
features
Sets the features of the plan.
<template>
<SubscriptionPlanCard
:features="featureList"
/>
</template>
<script setup lang="ts">
const featureList = [
'Feature 1',
'Feature 2',
'Feature 3'
]
</script>
hasFeatureListSeparator
Sets the feature list separator.
<template>
<SubscriptionPlanCard
hasFeatureListSeparator
/>
</template>
isYearly
Sets the yearly state of the plan.
<template>
<SubscriptionPlanCard
isYearly
/>
</template>
monthlyText
Sets the monthly text of the plan.
<template>
<SubscriptionPlanCard
monthlyText="monthly"
/>
</template>
yearlyText
Sets the yearly text of the plan.
<template>
<SubscriptionPlanCard
yearlyText="yearly"
/>
</template>
showSelectButton
Sets the select button state of the plan.
<template>
<SubscriptionPlanCard
showSelectButton
/>
</template>
selectButtonText
Sets the select button text of the plan.
<template>
<SubscriptionPlanCard
selectButtonText="Get started today"
/>
</template>
alignSelectButton
Sets the select button alignment of the plan. Uses the Align enum.
<template>
<SubscriptionPlanCard
:alignSelectButton="Align.CENTER"
/>
</template>
Options
| Value | Description |
|---|---|
LEFT | Content aligns to the left side of the card. |
CENTER | Content aligns to the center of the card. |
buttonStyle
Sets the button style of the plan. Uses the ButtonStyleType enum.
<template>
<SubscriptionPlanCard
:buttonStyle="ButtonStyleType.NEUTRAL_FILLED"
/>
</template>
featuredButtonStyle
Sets the featured button style of the plan.
<template>
<SubscriptionPlanCard
:featuredButtonStyle="ButtonStyleType.PRIMARY_BRAND_FILLED"
/>
</template>
Button style options
| Value | Description |
|---|---|
PRIMARY_BRAND_FILLED | Primary brand filled |
PRIMARY_BRAND_TRANSPARENT | Primary brand transparent |
PRIMARY_BRAND_SOFT | Primary brand soft |
SECONDARY_BRAND_FILLED | Secondary brand filled |
NEUTRAL_OUTLINED | Neutral outlined |
NEUTRAL_TRANSPARENT | Neutral transparent |
NEUTRAL_TRANSPARENT_SUBTLE | Neutral transparent subtle |
NEUTRAL_FILLED | Neutral filled |
DELETE_FILLED | Delete filled |
DELETE_OUTLINED | Delete outlined |
DELETE_SOFT | Delete soft |
DELETE_TRANSPARENT | Delete transparent |