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

@leafygreen-ui/delete-wizard

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/delete-wizard

LeafyGreen UI Kit Delete Wizard

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
6
Created
Source

Delete Wizard

npm (scoped)

View on MongoDB.design

Installation

PNPM

pnpm add @leafygreen-ui/delete-wizard

Yarn

yarn add @leafygreen-ui/delete-wizard

NPM

npm install @leafygreen-ui/delete-wizard
<DeleteWizard>
  <DeleteWizard.Header
    pageTitle="Demo Delete Wizard"
  />
  <DeleteWizard.Step requiresAcknowledgement>
    <DeleteWizard.StepContent>
      <div>Step 1 contents<div>
    </DeleteWizard.StepContent>
    <DeleteWizard.Footer
      primaryButtonProps={{
        children: 'Continue to next step',
      }}
    />
  </DeleteWizard.Step>

  <DeleteWizard.Step requiresAcknowledgement>
    <DeleteWizard.StepContent>
      <div>Step 2 contents<div>
    </DeleteWizard.StepContent>
    <DeleteWizard.Footer
      primaryButtonProps={{
        leftGlyph: <TrashIcon />,
        variant: 'danger',
        children: 'Delete my thing',
        onClick: handleDelete,
      }}
    />
  </DeleteWizard.Step>
</DeleteWizard>

DeleteWizard

Establishes a context, and only renders the activeStep (managed internally, or provided with the activeStep prop). Accepts a DeleteWizard.Header and any number of DeleteWizard.Steps as children.

DeleteWizard and all sub-components include template styling.

DeleteWizard.Header

A convenience wrapper around CanvasHeader

DeleteWizard.Step

A convenience wrapper around Wizard.Step to ensure the correct context. Like the basic Wizard.Step, of requiresAcknowledgement is true, the step must have isAcknowledged set in context, (or passed in as a controlled prop) for the Footer's primary button to be enabled. (see the Wizard and DeleteWizard demos in Storybook)

DeleteWizard.StepContent

A styled div for use inside a DeleteWizard.Step to ensure proper page scrolling and footer positioning

DeleteWizard.Footer

A wrapper around Wizard.Footer with embedded styles for the DeleteWizard template

FAQs

Package last updated on 03 Dec 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