Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paprika/confirmation

Package Overview
Dependencies
Maintainers
2
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/confirmation

Confirmation component

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-6.61%
Maintainers
2
Weekly downloads
 
Created
Source

Confirmation

The <Confirmation> component displays a confirmation panel with confirm and cancel actions

Installation

> npm install --save @paprika/confirmation or > yarn add @paprika/confirmation

Usage

import Confirmation from "@paprika/confirmation";

<Confirmation
  confirmLabel="Delete filter"
  body="Lorem ipsum dolor amet vexillologist tacos selvage narwhal butcher twee ethical hot chicken"
  onConfirm={() => handleConfirm(onClose)}
  onClose={() => handleClose(onClose)}
  heading="Delete filter?"
  renderTrigger={({ isConfirmOpen, handleOpenConfirm }) => (
    <Confirmation.Trigger isConfirmOpen={isConfirmOpen} onOpenConfirm={handleOpenConfirm}>
      Trigger
    </Confirmation.Trigger>
  )}
/>;

or

<Confirmation
  confirmLabel="Delete filter"
  body="Lorem ipsum dolor amet vexillologist tacos selvage narwhal butcher twee ethical hot chicken"
  defaultIsOpen
  onConfirm={() => handleConfirm(onClose)}
  heading="Delete filter?"
/>;

Props

  • buttonSize
  • confirmButtonType
  • confirmLabel
  • body
  • defaultIsOpen
  • isPending
  • onClose
  • onConfirm
  • heading
  • renderTrigger

More detail about these props

FAQs

Package last updated on 29 Aug 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc