Pricing Table
Display a list of pricing options
Use the PricingTable
component to display various pricing options or subscription plans in a clear, comparative layout, helping users make informed purchasing decisions.
-
Pricing Table with only required fields
The PricingTable
component expects a single options
prop in the form of an array of option
objects. Each object must have at least the following properties:
title
: The title of the option.price
: The price of the option.features
: An array of strings that represents a list of features.
Sometimes, you may want to provide a period with a pricing such as monthly
for subscriptions, or one-time
for a single payment. This can be added by setting the period
prop for an option
object:
-
Pay once, get access forever
-
Priority support
CTAs
As seen in the above example, the PricingTable
can be created with CTA buttons. To add them, use the buttons
prop on the option
object, that should reference an array of Button
components:
-
Use any button prop
-
Use any button prop
Ribbons
If you want to provide additional important information alongside with an option, you can use the ribbon
prop to display that on top of the table:
-
Pay once, get access forever
-
Priority support
-
Pay once, get access forever
-
Priority support
You can use existing Webcore theme color CSS variables for your colors. See the theme documentation for all available color variables. If you want to globally specify a custom ribbon color for all of your pricing tables, the recommended way is to override the following CSS variables once:
Recommended Option
In case you want to highlight one option from many, you can set the recommended
property to true
on an option
object to scale up the option:
-
Pricing table with 3 options
-
Access to all components
-
No hidden fees
-
Technical support
-
Free updates
-
Pricing table with 3 options
-
Access to all components
-
No hidden fees
-
Technical support
-
Free updates
-
Pricing table with 3 options
-
Access to all components
-
No hidden fees
-
Technical support
-
Free updates
Glow Effect
If you want to further emphasize an option, you can also add a glow effect by setting the glow
property of an option
object to true
:
-
Pricing table with 3 options
-
Access to all components
-
No hidden fees
-
Technical support
-
Free updates
-
Pricing table with 3 options
-
Access to all components
-
No hidden fees
-
Technical support
-
Free updates
-
Pricing table with 3 options
-
Access to all components
-
No hidden fees
-
Technical support
-
Free updates
You can further customize your glow effect by specifying a glowOptions
property, which accepts any valid GradientCardProps
type. Please see the API documentation of the GradientCard
component to see available customization options.
API
GradientCard
component for the GradientCardProps
type, and consult the documentation of the Button
component for the ButtonProps
type. Prop | Purpose |
---|---|
options | Sets the options for the pricing table. |
options.ribbon.label | Sets a ribbon for the option. |
options.ribbon.colorText | Sets the text color of the ribbon. |
options.ribbon.colorStart | Sets the start color of the ribbon's background. |
options.ribbon.colorEnd | Sets the end color of the ribbon's background. |
recommended | Sets the option as recommended, adding a scale effect. |
glow | Adds a glow effect to the option. |
glowOptions | Customizes the appearance of the glow. See the API documentation of the GradientCard . |
title | Sets a title for the option. |
price | Sets a price for the option. |
period | Sets a period after the price. |
features | Adds a list of features. Use an array of strings. |
buttons | Sets CTA buttons at the bottom of the option. |
buttons.text | Sets the label for the CTA. |
buttons.icon | Sets an icon for the CTA. You can pass SVG strings, or an icon type for Astro components. |
className | Pass additional CSS classes for pricing table. |
Request improvement for this page