Home / Companies / PropelAuth / Blog / Post Details
Content Deep Dive

Setting up a Responsive Multi-Tenant Template with Grommet, PropelAuth, and Next.js

Blog post from PropelAuth

Post Details
Company
Date Published
Author
Andrew Israel
Word Count
2,726
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

Grommet, Next.js, and PropelAuth can be combined to create a responsive, accessible B2B application foundation with a reusable page layout, header, sidebar navigation, authentication, and organization management. The walkthrough begins by initializing a Next.js app, wrapping it in Grommet for full-page styling and theming, and building an AppBar and sidebar with navigation links, then consolidates shared page elements into a PageWrapper component. PropelAuth is added through an AuthProvider to supply hosted login, account management, user data, and multi-tenant organization support, allowing the header to display login controls, loading states, or a user avatar and enabling protected routes through the withRequiredAuthInfo wrapper. The sidebar is made collapsible with a hamburger control and adapts on small screens by using Grommet’s ResponsiveContext and Layer components to display a full-screen overlay instead of a persistent side panel. Finally, authenticated users can create organizations or select among their existing organizations in the sidebar, with the active organization stored locally and validated through PropelAuth.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.