Skip to main content

Modals

The modal template components provide a consistent look and feel for common use cases.

DeleteModal

The DeleteModal component is a modal that is used to confirm the deletion of an item. It is a wrapper around the Modal component that provides a title, content, and buttons for dismissing the modal or confirming the delete action.

Result
Loading...
Live Editor

Props

FormModal

The FormModal component is a modal that is used for adding/editing information. It is a wrapper around the Modal component that provides a title, footer buttons, and a ref to the modal's Form. The component will wire up a Formik form to the modal and handle the form submission when the primary button is clicked.

Result
Loading...
Live Editor

Props

Layouts

LayoutModalHeader

The layout header component is used to provide a consistent layout for the header of a modal. It includes an icon, title, and close button. The icon and title can be customized using the iconVariant, iconClass, and renderTitle props. If the renderIcon prop is used it will supercede the iconVariant and iconClass props.

Result
Loading...
Live Editor

Props

LayoutModalFooter

The LayoutModalFooter component combines two common layouts for a modal footer: stacked and split. The stacked layout places the start and end content on separate lines, while the split layout places the start content on the left and the end content on the right. By default this layout component uses the 'responsive' variant whihc will switch between the stacked and split layouts based on the the md breakpoint.

Result
Loading...
Live Editor

Props