Modal


Import

Usage

Editable Code

Props

width

Description

It is used to set the width of the modal.

Values

String with valid width.

height

Description

It is used to set the height of the modal.

Values

String with valid height.

position

Description

It is used to set the position of the modal based on the view port.

Values

center.

isOpen

Description

It is used to decide when the modal will be opened and closed.

Values

Boolean value.

onClickAway

Description

It is the function that will be called when user clicks away from the modal.

Values

Function that closes the modal.

color

Description

It is used to set the color of the modal.

Values

primary | secondary | accent | error | warning | success

Note

To learn about customizing the components check this section of the docs.