Skip to main content

Modal

See React Bootstrap/Modals for full documentation and props.

The Modal component can have many possible variations. The most basic usage is to render a Modal with all content in the body and an optional Modal.Icon.

The Modal.Icon component can by styled by providing a variant prop. The default variant is 'info'.

Result
Loading...
Live Editor

When using the Modal.Header component the Modal.Icon should be placed within the header to the left of the Modal.Title.

Result
Loading...
Live Editor

Centered and stacked

This variation of the Modal moves the content of the footer into the body and centers all content vertically. Using the d-grid utility class around Buttons will force them to take the full width of their container.

Result
Loading...
Live Editor

Interactive footer content (checkboxes or links) should be positioned to the start of the footer. The buttons should be remain positioned to the end of the footer.

Result
Loading...
Live Editor

Analytics

The Modal component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'Modal',
actions: {
onHide: { type: 'MODAL_ON_HIDE', payload: 'Hide' },
},
};

Props

ModalIcon