feat: add a close button to dialog

The close affordance reuses Button (ghost, small) at the panel's top
right and routes through on_change like escape and scrim clicks; it is
hidden in alert mode. The dialog feature now depends on button, and
AGENTS.md codifies preferring existing components over custom elements.
This commit is contained in:
2026-11-10 04:50:56 +07:00
parent ec906839ed
commit dc2c612cff
4 changed files with 63 additions and 7 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ tooltip = []
menu = ["scroll_area"]
dropdown_menu = ["menu", "button"]
select = ["menu"]
dialog = []
dialog = ["button"]
empty_state = []
alert = []
toast = []