@paprika/dialog-actions
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

@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

Prop Type required default Description
kindConfirm string false "primary" If the primary button is a destructive action.
isDisabled bool false false If the primary and secondary buttons are disabled.
labelCancel string false "" Text for cancel button.
labelConfirm string false "" Text for primary action button.
labelDecline string false "" Text for a secondary generic button.
onCancel func false () => {} Function to call when cancel button is clicked.
onConfirm func false () => {} Function to call when primary button is clicked.
onDecline func false () => {} 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 />;

Links

Readme

Keywords

none

Package Sidebar

Install

npm i @paprika/dialog-actions

Weekly Downloads

373

Version

4.0.1

License

MIT

Unpacked Size

17 kB

Total Files

9

Last publish

Collaborators

  • vkhimich
  • mikrotron
  • jamiek-galvanize
  • allison_cc