Skip to content

Latest commit

 

History

History
71 lines (64 loc) · 1.41 KB

File metadata and controls

71 lines (64 loc) · 1.41 KB
title <AccountSettings />
full true

Demo

Props

<PropTable props={[ { name: "fullPage", type: "boolean", description: "If true, renders the component in full-page mode.", optional: true, default: "false" }, { name: "extraItems", type: "Array", description: "Additional items to be added to the sidebar. Each item should have the following properties:", optional: true, nested: [ { name: "title", type: "string", description: "The title of the item." }, { name: "content", type: "React.ReactNode", description: "The content to be rendered for the item." }, { name: "subpath", type: "string", description: "The subpath for the item's route." }, { name: "icon", type: "React.ReactNode", description: "The icon component for the item.", optional: true }, ] } ]} />

Example

import { AccountSettings } from '@stackframe/stack';

export default function MyAccountPage() {
  return (
    <AccountSettings
      fullPage={true}
      extraItems={[{
        title: 'Custom Section',
        icon: <SettingsIcon />,
        content: <CustomContent />,
        subpath: '/custom',
      }]}
    />
  );
}