feat: add `command` and `commandfor` to `HTMLButtonAttributes` (#16117)

* feat: add `command` and `commandfor` to `HTMLButtonAttributes`

* Update .changeset/empty-cherries-act.md

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
pull/16128/head
L. 3 months ago committed by GitHub
parent 90807ca18d
commit 292af8d38a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: add `command` and `commandfor` to `HTMLButtonAttributes`

@ -926,6 +926,17 @@ export interface HTMLButtonAttributes extends HTMLAttributes<HTMLButtonElement>
value?: string | string[] | number | undefined | null;
popovertarget?: string | undefined | null;
popovertargetaction?: 'toggle' | 'show' | 'hide' | undefined | null;
command?:
| 'show-modal'
| 'close'
| 'request-close'
| 'show-popover'
| 'hide-popover'
| 'toggle-popover'
| (string & {})
| undefined
| null;
commandfor?: string | undefined | null;
}
export interface HTMLCanvasAttributes extends HTMLAttributes<HTMLCanvasElement> {

Loading…
Cancel
Save