Socket
Socket
Sign inDemoInstall

@paprika/dialog-actions

Package Overview
Dependencies
102
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paprika/dialog-actions

The DialogActions component renders three buttons, Save (hasConfirm), Don't Save (hasDecline) and Cancel.


Version published
Weekly downloads
316
decreased by-20.4%
Maintainers
4
Install size
3.37 MB
Created
Weekly downloads
 

Readme

Source

@paprika/dialog-actions

Description

The DialogActions component renders three buttons, Save (hasConfirm), Don't Save (hasDecline) and Cancel.

Installation

yarn add @paprika/dialog-actions

or with npm:

npm install @paprika/dialog-actions

Props

DialogActions

PropTyperequireddefaultDescription
kindConfirmstringfalse"primary"If the primary button is a destructive action.
isDisabledboolfalsefalseIf the primary and secondary buttons are disabled.
labelCancelstringfalse""Text for cancel button.
labelConfirmstringfalse""Text for primary action button.
labelDeclinestringfalse""Text for a secondary generic button.
onCancelfuncfalse() => {}Function to call when cancel button is clicked.
onConfirmfuncfalse() => {}Function to call when primary button is clicked.
onDeclinefuncfalse() => {}Function to call when secondary button is clicked.

Usage

Please use <L10n /> component to wrap <DialogActions /> in your application.

Example:

import DialogActions from "@paprika/dialog-actions";

<DialogActions />;
  • Storybook Showcase
  • GitHub source code
  • Create GitHub issue
  • CHANGELOG

FAQs

Last updated on 06 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc