<p>In the CP you can generate a modal using craft's 'garnish' js as explained in <a href="https://craftcms.stackexchange.com/a/384/784">this answer</a>. On the front-end I believe you would need to develop you own solution.</p>

CC BY-SA 3.0
2014-11-22T17:14:38.633Z
2014-11-22T17:14:38.633Z
2017-04-13T12:51:00.200Z
Douglas McDonald
<p>I’m looking to hook into existing modal functionality, if any exists.</p>

<p>Is there any way of doing this?</p>

<p>If there is, what’s the advised approach and considerations required to ensure responsiveness?</p>

<control-panel><user-interface>
Is there an API for modals?
# Is there an API for modals?

(Asked by: username_0 on 2014-11-22)

I’m looking to hook into existing modal functionality, if any exists.

Is there any way of doing this?

If there is, what’s the advised approach and considerations required to ensure responsiveness?

**Tags:** control-panel, user-interface

---

## 1 answers

### Answer by username_1 on 2014-11-22. Score: 3 | Accepted answer

In the CP you can generate a modal using craft's 'garnish' js as explained in [this answer](https://craftcms.stackexchange.com/a/384/784). On the front-end I believe you would need to develop you own solution.


---

