Overview
Single part app pages were recently introduced in Modern SharePoint. We can extend out of the box page templates by creating our own templates, however, they are limited to only that site. To use the page templates all across the tenant, we will have to create custom app pages using SharePoint framework. We can expose app pages by using new page template selection with SPFx web part on it.
Create SPFx Solution
Open the command prompt. Create a directory for SPFx solution.
- md single-part-app-page
- cd single-part-app-page
- yo @microsoft/sharepoint

Solution Name: Hit Enter to have default name (single-part-app-page in this case) or type in any other name for your solution.
Selected choice: Hit Enter
Target for component: Here, we can select the target environment where we are planning to deploy the client web part, i.e., SharePoint Online or SharePoint OnPremise (SharePoint 2016 or 2019 onwards).
Selected choice: SharePoint Online only (latest)
Place of files: We may choose to use the same folder or create a subfolder for our solution.
Selected choice: Use the current folder
Deployment option: Selecting Y will allow the app to deployed instantly to all sites and will be accessible everywhere.
Selected choice: Y
Permissions to access web APIs: Choose if the components in the solution require permissions to access web APIs that are unique and not shared with other components in the tenant.
Selected choice: N (solution contains unique permissions)
Type of client-side component to create: We can choose to create a client-side web part or an extension.
Selected choice: WebPart, since single part app pages are web parts.
Web Part Name: Hit Enter to select the default name or type in any other name.
Selected choice: SinglePartPage
Web part description: Hit Enter to select the default description or type in any other value.
Selected choice: Hit Enter
Framework to use: Select any JavaScript framework to develop the component. Available choices are (No JavaScript Framework, React, and Knockout)
Selected choice: No JavaScript Framework
Yeoman generator will perform a scaffolding process to generate the solution. The scaffolding process will take a significant amount of time.
Once the scaffolding process is completed, lock down the version of project dependencies by running the below command.
- npm shrinkwrap
- code .
Web Part Configuration
In order to expose this web part as a single part app page, we will have to make below configurations.
- Open SinglePartPageWebPart.manifest.json file under “\src\webparts\singlePartPage”.
- In the supportedHosts, add option SharePointFullPage.

We will go ahead with the default implementation of the custom app page, without any customization to see how it looks out of the box.
Deploy the Package
Bundle the solution
On the command prompt, type the below command to bundle the solution.
- gulp bundle --ship
Package the solution
On the command prompt, type below command to package the solution.
- gulp package-solution --ship
Add Package to App Catalog
- Open SharePoint Online App Catalog site.
- Add single-part-app-page.sppkg to app catalog.
- Select “Make this solution available to all sites in the organization”, as this custom app page should be available across the tenant.
- Click Deploy.

Test the Custom App Page
- Open Modern SharePoint site.
- Click New > Page.

- The out of the box page templates are displayed.
- Click the Apps tab. The Apps tab is only displayed when custom app pages are deployed to the tenant.
- Click our custom app, SinglePartPage. It displays the preview on the right side.

- Click Create page.
- Specify the page title.
Our custom app page is now ready with our SPFx web part added to it.
Summary
We can extend out of the box page templates by creating our own templates, however, they are limited to only that site. To use the page templates all across the tenant, we will have to create custom app pages using SharePoint framework.

Join the conversation! Your thoughts help the community grow.