Renders an account settings page with customizable sidebar items and optional full-page layout.

Props

  • fullPage (optional): boolean - If true, renders the component in full-page mode.
  • extraItems (optional): Array - Additional items to be added to the sidebar. Each item should have the following properties:
    • title: string - The title of the item.
    • icon: LucideIcon - The icon component for the item.
    • content: React.ReactNode - The content to be rendered for the item.
    • subpath: string - The subpath for the item’s route.

Example

1import { AccountSettings } from '@stackframe/stack';
2
3export default function MyAccountPage() {
4 return (
5 <AccountSettings
6 fullPage={true}
7 extraItems={[{
8 title: 'Custom Section',
9 icon: CustomLucideIcon,
10 content: <CustomContent />,
11 subpath: '/custom',
12 }]}
13 />
14 );
15}