Customizable Modals #2349
-
|
Hi! Wondering if there are plans to add customization to modals, particularly the ability to adjust width, and add inputs: Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Hi @ceyerkes, Our Modal component has two standard sizing: Our Modal is able to accept any inputs in the ModalBody. Could you share some more context for what you're being blocked on in that regard please? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ceyerkes! Super interesting that you've asked this, because we've recently been exploring some ways to make it easier to put custom content inside of components in Figma without having to detach. Components like Card, Modal, Popover, etc. are tricky, because you can really put anything you want inside of them, so they're really tough to componentize in Figma. One idea we've been exploring are what we're calling "slot" components that we actually just shared with the committee. The idea is that the "slot" component is nested within a component like Modal, and it could be swapped out for a local component. That local component would have your custom content, like the inputs, checkboxes, and radio groups you shared in your example. Check out my branch to see how we're thinking about it. I'd love to get your thoughts on this approach and if it makes sense to you based on your needs and workflow. |
Beta Was this translation helpful? Give feedback.


Hey @ceyerkes! Super interesting that you've asked this, because we've recently been exploring some ways to make it easier to put custom content inside of components in Figma without having to detach. Components like Card, Modal, Popover, etc. are tricky, because you can really put anything you want inside of them, so they're really tough to componentize in Figma.
One idea we've been exploring are what we're calling "slot" components that we actually just shared with the committee. The idea is that the "slot" component is nested within a component like Modal, and it could be swapped out for a local component. That local component would have your custom content, like the inputs, checkboxes…