Rate this page:

ContentBylineItem

The ContentBylineItem component renders content in an inline dialog when triggered from the content byline section of a Confluence page. ContentBylineItem is the top-level component required for the confluence:contentBylineItem module.

This module can only be used in Confluence.

Usage

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

Props

NameTypeRequiredDescription
childrenArray<ForgeComponent>YesA container for displaying multiple components. Can only contain InlineDialog.

Example

A hello world example of the ContentBylineItem component.

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

const App = () => {
    return (
        <InlineDialog>
            <Text>Hello world!</Text>
        </InlineDialog>
    );
};

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

Preview

Example of a Content byline item with the above sample code

Rate this page: