@formata/limitr-ui
v0.1.7
Published
Open-source and vibe-code friendly UI library for [Limitr](https://limitr.dev).
Readme
Limitr UI
Open-source and vibe-code friendly UI library for Limitr.
Example
To show a customer's current Limitr plan information, usage, Stripe subscription details, recent invoices, billing management options, cancel/resume actions, plan selection table, etc, just import and include the limitr-current-plan component like so.
See @formata/limitr for more information on Limitr pricing policies, and check out Limitr Cloud to implement your pricing in a few minutes.
renderCurrentUserSubscription(customerId: string) {
const policy: any = this.policy ?? new Limitr();
return html`
<div class="section">
<div class="section-header">
<h2 class="section-title">Subscription</h2>
</div>
<div class="section-content">
<limitr-current-plan
.policy=${policy}
.customerId=${customerId}
?showStripeInfo=${true}
?cancelImmediately=${false}
?requestStripeInvoices=${true}
?requestStripePortalUrl=${true}
></limitr-current-plan>
</div>
</div>
`;
}