Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MI 2305: Dialog component #32

Merged
merged 3 commits into from
Nov 10, 2022
Merged

MI 2305: Dialog component #32

merged 3 commits into from
Nov 10, 2022

Conversation

tanisha-agarwal
Copy link

Ticket Link
MI-2305

Description
Created Dialog Component

Screenshots
Dialog with just title
image

Dialog with title, description and primary action
image

Dialog with destructive primary action
image

Dialog with title and custom JSX as content
image

Dialog with just custom JSX as content
image

show?: boolean;

/**
* Callback function which is to be triggered onHide scenarios

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Callback function which is to be triggered onHide scenarios
* Callback function which is to be triggered for "onHide" scenarios

onSubmitHandler?: () => void;

/**
* 'true' for a backdrop that triggers an "onHide" when clicked.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 'true' for a backdrop that triggers an "onHide" when clicked.
* 'true' for a backdrop that triggers the "onHide" when clicked.

title: undefined,
children: <div>
<h1>{'Custom Jsx'}</h1>
<hr/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prevent using <hr/>, BR it's deprecated now

@tanisha-agarwal tanisha-agarwal merged commit 2a4e52c into mm_v6 Nov 10, 2022
@tanisha-agarwal tanisha-agarwal deleted the MI_2305 branch November 10, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants