🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gooddialogs

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gooddialogs

good dialogs and notifications

1.0.2
latest
Source
npm
Version published
Weekly downloads
9
-65.38%
Maintainers
0
Weekly downloads
 
Created
Source

Dialogs

Install

npm install gooddialogs

Import single

import 'gooddialogs/dist/base.min.css';
import {goodDialogs} from 'gooddialogs';

Import and create instance

import 'gooddialogs/dist/base.min.css';
import {GoodDialogs} from 'gooddialogs';
const goodDialogs = new GoodDialogs('Message');

Use

const resDialog = await goodDialogs.confirm('Message')

With Options

const resDialog = await goodDialogs.confirm('Message', {/* Options */})

Confirm Dialog

const resDialog = await goodDialogs.confirm('Mensaje')

Option Properties

ParameterTypeExplanation
alertClassstringAdditional CSS class for the alert.
alertInstringDefines the entry animation for the alert.
alertOutstringDefines the exit animation for the alert.
cancelButtonClassstringCSS class for the cancellation button.
cancelButtonTextstringText for the cancellation button.
confirmButtonClassstringCSS class for the confirmation button.
confirmButtonTextstringText for the confirmation button.
containerClassstringCSS class for the alert container.
darkForcebooleanForces the use of the dark theme.
divIconClassstringCSS class for the icon within the alert.
footerClassstringCSS class for the alert footer.
lightForcebooleanForces the use of the light theme.
onConfirm() => voidFunction that executes when the user confirms the alert.
persistentbooleanIndicates whether the alert should remain visible until the user manually closes it.
position'top' | 'left' | 'right' | 'center' | 'top-left' | 'top-center' | 'top-right'Defines the position of the alert on the screen.
subtitlestring | nullSubtitle of the alert.
themeOptionThemeTheme of the alert, defined by OptionTheme.
timernumber | nullSets the time in milliseconds before the alert automatically closes.
titlestring | nullTitle of the alert.

Keywords

dialog

FAQs

Package last updated on 06 Mar 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