View Source PlausibleWeb.Components.Billing.PlanBenefits (Plausible v0.0.1)
This module exposes functions for rendering and returning plan benefits for Growth, Business, and Enterprise plans.
Summary
Functions
Returns Business benefits for the given Business plan.
This function only takes a list of business benefits. Since all limits and features of enterprise plans are configurable, we can say on the upgrade page that enterprise plans include everything in Business.
This function takes a growth plan and returns a list representing the different benefits a user gets when subscribing to this plan.
This function takes a list of benefits returned by either one of
Functions
Returns Business benefits for the given Business plan.
A second argument is also required - list of Growth benefits. This is because we don't want to list the same benefits in both Growth and Business. Everything in Growth is also included in Business.
This function only takes a list of business benefits. Since all limits and features of enterprise plans are configurable, we can say on the upgrade page that enterprise plans include everything in Business.
This function takes a growth plan and returns a list representing the different benefits a user gets when subscribing to this plan.
This function takes a list of benefits returned by either one of:
and renders them as HTML.
The benefits in the given list can be either strings or functions returning a Phoenix component. This allows, for example, to render links within the plan benefit text.
Attributes
benefits
(:list
) (required)class
(:string
) - Defaults tonil
.