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 Button Account component for ShipFast boilerplate


1import ButtonAccount from "@/components/ButtonAccount";

Updated on: Monday, October 30, 2023

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