#
Unify Applications
Logo
Add Components to your Interface
Logo
Modal

Modal

Logo

5 min READ

Overview

The Modal component allows users to create pop-up dialogs that can display information, prompt user actions, or gather input.

Modals are an essential UI element for creating interactive and dynamic applications.

Configure Card Modal

In the Card Variant, the modal appears on the screen like a card, integrated into the main page.

Users can add components directly within this card-like modal. This variant is particularly useful for displaying smaller, self-contained content and interactions.

You can configure a Card Modal by following the below steps: 

  1. Add Modal from the component list to your canvas. 

    Thumbnail

    Note

    The modal always gets added to the bottom of your component hierarchy.

  2. By default, the added Modal will be of Card Type. You can find it under Variant in the properties section. 

  3. Add Components in Modal like you add in a Card Component in 3 Different Slots of Header, Body & Footer

    Thumbnail

    Refer

    Check Card Component’s article to know in detail about adding components in a card.

    Image
    Image

Configure Page Modal

This variant allows users to select and render an entire page inside the modal.

Users need to navigate to the selected page to create and configure the content that will be displayed within the modal.

Image
Image

Open & Close Modals

Opening & Closing of Modal is defined in the Interaction section. Modal is triggered by the interaction defined in other components. To define opening of a modal, follow the below steps: 

  • Add Interaction: Select a component (e.g., button) that will trigger the modal to open.

  • Configure Interaction: Set the interaction action to "Control Modal".

  • Specify Operation: Choose "Show" or “Hide” to control visibility of the modal when the triggering component is activated.

Image
Image

Thumbnail

Note

You can also define events like On Close where you can mention the actions or workflows that should be performed when the modal is closed, such as resetting forms or updating data.

Appearance Customization

Property

Description

Height

Set the vertical size of the modal to control how much space it occupies on the screen.

Width

Adjust the horizontal size of the modal to fit the desired content width.

Padding

Define the internal space between the content and the modal's border

Height

Sets the overall height of the modal component.

Min-Height

Sets the minimum height of the modal component.

Max-Height

Defines the maximum height the modal component can expand to.

Width

Sets the overall width of the modal component.

Min Width

Specifies the minimum width the tab component can shrink to.

Max Width

Defines the maximum width the tab component can expand to.

Permissions

The Modal component allows you to set visibility permissions based on the permissions granted to the logged-in user. This ensures that only authorized users can view or interact with the modal. 

Thumbnail

Refer

You can refer to Permissions article to know more about defining permissions for each component.


FAQs

Can I add multiple components to a single modal?

Yes, you can add multiple components such as text, images, and charts to different sections (header, body, footer) of the modal.

Can I trigger a modal from another component's interaction?

Yes, you can configure other components like buttons or images to trigger the opening of a modal through the interaction settings.

Can I have different modals triggered by different buttons on the same page? 

Yes, you can configure each button to trigger a different modal using the interaction settings for each button.

How can I make sure only certain users can see or interact with a modal? 

You can set visibility permissions based on user roles or specific permissions granted to logged-in users.

Can I embed forms within a modal?

Yes, you can embed forms within a modal to gather user input. Just add the form components to the modal's body section.