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

pull/16117/head
Lyntor Paul Figueroa 3 months ago
parent 26e3286899
commit bec7df8a33

@ -0,0 +1,5 @@
---
'svelte': patch
---
feat: 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