In this episode, we roll up our sleeves and get modal functionality working for our app. Since we'll need modals quite a bit—think editing a card after clicking on it—we start by installing the handy Wire Elements Modal package. This package plays nicely with Tailwind CSS, so styling isn't a hassle.
You'll see how to get the package installed, the directive registered in our main layout, and then we're off to the races. We make a new component for our modals (specifically, an Edit Card modal), set it up to extend the modal class, and then hook up our UI so that clicking a card fires an event to open the right modal.
We pass along the card's ID to the modal so we can load the right info to edit, and with just a few lines, we have a fully functional modal popping up with the card details. By the end, you'll see how easily we can show modals with dynamic data, making it nice and interactive for users to edit cards.