consul/ui/packages/consul-ui/app/components/disclosure-menu/index.hbs

30 lines
610 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<div
class={{class-map
"disclosure-menu"
}}
...attributes
>
<Disclosure
@expanded={{@expanded}}
as |disclosure|>
{{yield (hash
Action=(component 'disclosure-menu/action' disclosure=disclosure)
Menu=(component 'disclosure-menu/menu'
disclosure=disclosure
items=@items
rowHeight=@rowHeight
)
disclosure=disclosure
toggle=disclosure.toggle
close=disclosure.close
open=disclosure.open
expanded=disclosure.expanded
)}}
</Disclosure>
</div>