7.1.0 • Published 11 months ago

@splunk/react-page v7.1.0

Weekly downloads
508
License
Apache-2.0
Repository
-
Last release
11 months ago

@splunk/react-page

Loads a React component into the latest layout from the Splunk Enterprise server, including the Splunk bar, app bar, and a footer around your page content.

This package dynamically loads the Layout API from the correct location.

Using this package requires splunkd partials to be loaded on the page.

Install

Install the package and its dependencies.

  1. Install the peer dependencies:
    npm install react@^16 react-dom@^16 styled-components@^5
  2. Install the package:
    npm install @splunk/react-page

Usage

In a basic scenario, the layout takes a React element and an optional options object.

import layout from '@splunk/react-page';
import MyPage from 'pages/MyPage';

layout(<MyPage />, { pageTitle: 'A React Page', hideFooter: true, layout: 'fixed' });
7.1.0

11 months ago

7.0.0

1 year ago

6.3.0

2 years ago

6.2.0

2 years ago

6.3.2

2 years ago

6.3.1

2 years ago

6.3.3

2 years ago

6.1.0

2 years ago

6.1.1

2 years ago

6.0.4

2 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.2.1

3 years ago

5.2.0

3 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.1.1

6 years ago

1.1.2

7 years ago