Forge Developer

Beta

Forge Developer

Beta

Rate this page:

SpacePage

The SpacePage component renders a full-page app in the content area of Confluence. SpacePage is the top-level component required for the confluence:spacePage module.

This module can only be used in Confluence.

Usage

1
import ForgeUI, { SpacePage } from '@forge/ui';

Props

NameTypeRequiredDescription
childrenArray<ForgeComponent>YesA container for displaying multiple components. Can contain any UI kit component.

Example

A hello world example of the SpacePage component.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import ForgeUI, {render, Text, SpacePage} from '@forge/ui';

const App = () => {
    return (
        <Text>Hello from the space page!</Text>
    );
};


export const run = render(
    <SpacePage>
        <App/>
    </SpacePage>
);

Preview

Example of a SpacePage component with the above sample code

Rate this page: