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

30 lines
611 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
<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>