Files
Liu 029d5c4e22 feat(widgets): add button group widget
- add button-group, button-group-text and button-group-separator
  prototypes with orientation and separator APIs
- mark direct children as geometry items, keep select, popover and
  dropdown wrappers out of the border geometry and clean up on unlink
- theme the group for the nova style, covering nested groups, select,
  input group and first/last edge rules
- add integration tests for factories, marking, geometry, input flex
  and trigger wrappers
- add zh-CN documentation, field tables, sidebar entry and C/XML/TSX
  examples for every section
2026-11-08 00:20:39 +08:00

30 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<lcui-app>
<ui>
<button-group class="button-group-dropdown-demo">
<button variant="outline"><text>Follow</text></button>
<dropdown-menu>
<dropdown-menu-trigger>
<button variant="outline" size="icon"><icon name="chevron-down" /></button>
</dropdown-menu-trigger>
<dropdown-menu-content align="end">
<dropdown-menu-group>
<dropdown-menu-item><icon name="speaker-off" /><text>Mute Conversation</text></dropdown-menu-item>
<dropdown-menu-item><icon name="checkmark" /><text>Mark as Read</text></dropdown-menu-item>
<dropdown-menu-item><icon name="warning" /><text>Report Conversation</text></dropdown-menu-item>
<dropdown-menu-item><icon name="person-delete" /><text>Block User</text></dropdown-menu-item>
<dropdown-menu-item><icon name="share" /><text>Share Conversation</text></dropdown-menu-item>
<dropdown-menu-item><icon name="copy" /><text>Copy Conversation</text></dropdown-menu-item>
</dropdown-menu-group>
<dropdown-menu-separator />
<dropdown-menu-group>
<dropdown-menu-item variant="destructive">
<icon name="delete" /><text>Delete Conversation</text>
</dropdown-menu-item>
</dropdown-menu-group>
</dropdown-menu-content>
</dropdown-menu>
</button-group>
</ui>
</lcui-app>