Skip to content

Dialog

<bh-dialog> | BharatDialog

The Dialog component provides a modal interface for interactions like confirmations, alerts, or custom messages. It supports multiple variants, custom button texts, and dynamic open/close behavior.

Basic Usage

Properties

PropertyTypeDescription
showbooleanWhether the dialog is open
headerstringHeader label text
messagestringHeader label text

Methods

MethodDescription
showDialog(options)Function call to display the dialog, takes options object as a parameter. e.g - { header: "Dialog", message: "Lorem ipsum dolor.",}