{# This component creates modal windows using Bootstrap modal JavaScript logic but with a modern look and feel inspired by libraries like shadcn. To open/close the modal use the `` and `` helpers. Usage examples: # a confirmation dialog opened by a trigger button Delete Cancel Delete # custom body content and a wider window

Any markup you need goes here.

Close
# confirmation style with an icon stacked on top No Yes #} {% props title = null, # the main text shown in the modal window description = null, # the smaller optional text shown below the title size = null, # window width; values: `sm` 320px, default 380px, `lg` 512px, `xl` 800px icon = null, # name of the optional icon shown at the top left of the window topIcon = null, # name of the optional icon shown on top of the modal contents headerClass = '', # custom CSS class(es) added to the modal header HTML element bodyClass = '', # custom CSS class(es) added to the modal body HTML element footerClass = '' # custom CSS class(es) added to the modal footer HTML element %} {% set modalIcon = topIcon ?? icon %}