@fireact.dev/saas
SaaS components and utilities for Fireact applications.
Installation
npm install @fireact.dev/saas
Dependencies
This package requires the following peer dependencies:
- @fireact.dev/core
- @headlessui/react
- @heroicons/react
- firebase
- i18next
- react
- react-dom
- react-i18next
- react-router-dom
- tailwindcss
Components
- Billing
- BillingForm
- CancelSubscription
- ChangePlan
- CreatePlan
- EditPermissionsModal
- Home
- InviteUser
- InvoiceList
- InvoiceTable
- MainDesktopMenu
- MainMobileMenu
- ManagePaymentMethods
- Pagination
- Plans
- ProtectedSubscriptionRoute
- SubscriptionDashboard
- SubscriptionDesktopMenu
- SubscriptionMobileMenu
- SubscriptionSettings
- TransferSubscriptionOwnership
- UpdateBillingDetails
- UserList
- UserTable
Contexts
- SubscriptionContext (SubscriptionProvider, useSubscription)
Hooks
Layouts
Usage
import {
SubscriptionProvider,
SubscriptionDashboard,
SubscriptionDesktopMenu,
SubscriptionMobileMenu
} from '@fireact.dev/saas';
function App() {
return (
<SubscriptionProvider>
<div className="flex">
<nav className="hidden md:block">
<SubscriptionDesktopMenu />
</nav>
<nav className="block md:hidden">
<SubscriptionMobileMenu />
</nav>
<main>
<SubscriptionDashboard />
</main>
</div>
</SubscriptionProvider>
);
}