🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@leafygreen-ui/canvas-header

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/canvas-header

LeafyGreen UI Kit Canvas Header

latest
Source
npmnpm
Version
3.0.2
Version published
Maintainers
6
Created
Source

Canvas Header

npm (scoped)

View on MongoDB.design

Installation

Yarn

yarn add @leafygreen-ui/canvas-header

NPM

npm install @leafygreen-ui/canvas-header

Example

import { CanvasHeader } from `@leafygreen-ui/canvas-header`;
import Button from '@leafygreen-ui/button';
import Icon from '@leafygreen-ui/icon';
import { BackLink } from '@leafygreen-ui/typography';


  <CanvasHeader
    pageTitle="page title"
    resourceName='ac_iqttxwn_shard-00-01.hvcuthh.mongodbnet:27017_324892384903284902384903284903284902384903284832908_long_name'
    resourceIcon={<Icon glyph={'ShardedCluster'} />}
    backLink={
      <BackLink
        href="/home"
      >
        Back to Cluster
      </BackLink>
    }
    actions={
      <Button
        variant="primary"
        leftGlyph={<Icon glyph={'InviteUser'} />}
      >
        Invite user
      </Button>
    }
    badges={
      <>
        <Badge variant="green">Enabled</Badge>
        <Badge variant="blue">In Dev Mode</Badge>
      </>
    }
  />

Properties

PropTypeDescriptionDefault
darkModebooleanDetermines if the component renders in dark modefalse
pageTitleReact.ReactNodeRequired page title
resourceNamestringOptional resource name that will copy to the clipboard when clicked
resourceIconReact.ReactNodeOptional icon that will render to the left of the resource name
badgesReact.ReactNodeOptional badges that will render to the right of the resource name
actionsReact.ReactNodeOptional buttons that will render to the right of the badges or resource name
backLinkReact.ReactNodeOptional link that will render above the page title.

FAQs

Package last updated on 24 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts