ComponentsButton Account

A button with a dropdown menu to manage user account:

  • Billing: Open a Stripe Customer Portal to manage their billing (cancel subscription, update payment method, etc.). You have to manually activate the Customer Portal in your Stripe Dashboard. This is only available if the customer has a customerId (they made a purchase previously)
  • Logout: sign out the user and go back to the homepage

It's automatically hidden if the user is not logged in. This component is used to handle Stripe Subscriptions.

A ButtonLead component for CodeLaunch boilerplate
page.js

Looking for UI-only components like buttons, inputs, etc? It's all available as Tailwind utilities. See this guide for more info.