--- title: Modal layout: documentation doc-tab: components doc-subtab: modal breadcrumb: - home - documentation - components - components-modal meta: colors: false sizes: false variables: true --- {% capture modal %} {% endcapture %} {% capture image_modal %} {% endcapture %} {% capture modal_card %} {% endcapture %}

The modal structure is very simple:

{% highlight html %}{{ modal }}{% endhighlight %}

To activate the modal, just add the is-active modifier on the .modal container

No JavaScript
Bulma does not include any JavaScript interaction. You will have to implement the class toggle yourself.

Image modal

Because a modal can contain anything you want, you can very simply use it to build an image gallery for example:

Launch image modal

{% highlight html %}{{ image_modal }}{% endhighlight %}

Modal card

If you want a more classic modal, with a head, a body and a foot, use the modal-card.

{% highlight html %}{{ modal_card }}{% endhighlight %}
{% include variables.html type='component' %}