Back to Fluentui

DialogTitleCustomAction

packages/react-components/react-dialog/stories/src/Dialog/DialogTitleCustomAction.md

4.40.2-hotfix2421 B
Original Source

By default if Dialog has modalType='non-modal' a button with a close icon is provided to close the dialog as action slot.

This slot can be customized to add a different kind of action, that it'll be available in any kind of Dialog, ignoring the modalType property, here's an example replacing the simple close icon with a Fluent UI Button using the same icon.