JSPM

@workday/canvas-kit-react-page-header

5.0.0-beta.1-next.6+33758d4b
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 349
  • Score
    100M100P100Q113246F
  • License Apache-2.0

Canvas page header component

Package Exports

  • @workday/canvas-kit-react-page-header

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@workday/canvas-kit-react-page-header) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Canvas Kit Page Header

A Canvas component that displays the header of a specific page within a website or application. It is generally used as a sub-header to the main application header (@workday/canvas-kit-labs-react-header).

> Workday Design Reference

Installation

yarn add @workday/canvas-kit-react

or

yarn add @workday/canvas-kit-react-page-header

Usage

import * as React from 'react';
import {PageHeader} from '@workday/canvas-kit-react-page-header';
import {IconButton} from '@workday/canvas-kit-react-button';
import {exportIcon, fullscreenIcon} from '@workday/canvas-system-icons-web';

<PageHeader title="Product">
  <IconButton icon={exportIcon} />
  <IconButton icon={fullscreenIcon} />
</PageHeader>

<PageHeader title="With Cap Width" capWidth={true}>
  <IconButton icon={exportIcon} />
  <IconButton icon={fullscreenIcon} />
</PageHeader>

Static Properties

None

Component Props

Required

None

Optional

title: string

The title of the page header.

Default: ''


capWidth: boolean

Use the page header in the non-product page. In this context, content is centered and the page header is responsive in all three breakpoints.

Defalut: false


breakpoint: number

The breakpoint at which the header's container spacing increases from 's' size to 'xl' size.

Default: 768