Skip to content

Commit 345eb22

Browse files
fix: add missing button attribute command & commandfor (#14761)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
1 parent a1fd7ed commit 345eb22

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.changeset/fifty-baboons-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Updates `button` attributes types to allow `command` and `commandfor`

packages/astro/astro-jsx.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,17 @@ declare namespace astroHTML.JSX {
672672
value?: string | string[] | number | undefined | null;
673673
popovertarget?: string | undefined | null;
674674
popovertargetaction?: 'hide' | 'show' | 'toggle' | undefined | null;
675+
command?:
676+
| 'show-modal'
677+
| 'close'
678+
| 'request-close'
679+
| 'show-popover'
680+
| 'hide-popover'
681+
| 'toggle-popover'
682+
| (string & {})
683+
| undefined
684+
| null;
685+
commandfor?: string | undefined | null;
675686
}
676687

677688
interface CanvasHTMLAttributes extends HTMLAttributes {

0 commit comments

Comments
 (0)