We are currently in alpha version.
Please expect changes. If you find any issues, please report them on our github.
Modal
Modals are overlay UI elements that focus user attention on critical information or actions. They provide a controlled interaction point, ensuring users engage with important content before returning to the main interface.
Basic modal
Preview
Code
Enter your details
Optional properties
Property | Type | Description |
---|---|---|
|
| Defines the modal's shape. |
|
| Controls button sizing. |
| string | Allows overriding default styles by passing Tailwind CSS classes. Utilize the |
Global configurations
A list of global styles, including shape, size, color, font sizes, font weights, and letter spacing can be provided via themeLibrary
in the provideZapOption
provider.. If you have multi theme setup, you can also provide theme specific colors. These apply to all default variants through out the app unless component level styles are provided.
Example
app.config.ts
Shape and Size
Property | Description |
---|---|
| Defines the shape of the modal. Can be |
| Defined the size of the button. Can be |
Colors
You can provide each of these colors for different themes that you use
Property | Description |
---|---|
| Background color of the modal. |
| Border color of the modal. |
| Color of the dismiss icon |
| Color of the dismiss icon when hovered |
Other styles
You can provide a bunch of other styles, that are not theme based but rather generic
Property | Description |
---|---|
| Defines the radius of the modal's corners. |
| Left padding of the modal. |
| Right padding of the modal. |
| Top padding of the modal. |
| Bottom padding of the modal. |
| Padding around the modal's content. |
| Max width of the modal. |
| Max height of the modal. |
| Font size of the modal's dismiss icon. |
| Font weight of the modal's dismiss icon. |
| Line height of the modal's dismiss icon. |
| Letter spacing of the modal's dismiss icon. |