How to set target _blank on a button?

any way to set target=“_blank” on a button?

you can do it for links, just check the “Open in new tab?” HTML Attribute:


I think this attribute is only valid for links (<a>)

Ah ok thanks. I guess in a component can I add it as a slot?

In the official plasmic template I used, there was a button that was using a meta prop for link

should we use meta props? Or slots? I can probably just recreate the component that came with the template

slots are “placeholders” in the component that can be replaced by any other element - so you could replace the link by anything else (including another link with the target attr set).

if you only need to set the target attr instead of completely replacing the elements, it might make more sense to use a meta prop and just link it to the element