Default
How it looks (preview)
How to call this example
<%= render "components/toolbar_dropdown", {
title: "Insert...",
items: [
{
text: "Image",
href: "#",
target: "_blank",
data_attributes: {
module: "inline-image-modal",
"modal-action": "open"
}
},
{
text: "Contact",
button_options: {
value: "add_contact",
name: "submit"
}
}
]
} %>