hinode icon indicating copy to clipboard operation
hinode copied to clipboard

Add dropdowns

Open hawkeye116477 opened this issue 3 months ago • 2 comments

Problem or enhancement idea

I'd like to use button as a dropdown like in https://getbootstrap.com/docs/5.3/components/dropdowns/, so shortcode/partial would be useful.

hawkeye116477 avatar Sep 18 '25 17:09 hawkeye116477

Thanks for the enhancement request. To understand the request a bit better, how would you want to populate the items? Should this be a markdown list, possibly consisting of markdown links?

markdumay avatar Sep 18 '25 18:09 markdumay

Should this be a markdown list, possibly consisting of markdown links?

Well, I thought about something like:

{{< dropdown-menu >}} 
{{< dropdown-item href="#url" >}}Action{{</ dropdown-item}}
{{< dropdown-item href="#url2" >}}Action2{{</ dropdown-item}}
{{</ dropdown-menu >}}

or

{{< dropdown-menu items="[
  { 'text': 'Action', 'href': '#url' },
  { 'text': 'Action2', 'href': '#url2' },
]" >}}

However can be also markdown list if it's possible.

hawkeye116477 avatar Sep 18 '25 21:09 hawkeye116477