mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 18:18:57 +01:00
feat(jsx): add popover api attributes (#3323)
This commit is contained in:
parent
12893e26ea
commit
bc2b7cfeeb
@ -181,7 +181,8 @@ export namespace JSX {
|
||||
lang?: string | undefined
|
||||
nonce?: string | undefined
|
||||
placeholder?: string | undefined
|
||||
popover?: string | undefined
|
||||
/** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */
|
||||
popover?: boolean | 'auto' | 'manual' | undefined
|
||||
slot?: string | undefined
|
||||
spellcheck?: boolean | undefined
|
||||
style?: CSSProperties | string | undefined
|
||||
@ -238,6 +239,9 @@ export namespace JSX {
|
||||
cite?: string | undefined
|
||||
}
|
||||
|
||||
/** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */
|
||||
type HTMLAttributePopoverTargetAction = 'show' | 'hide' | 'toggle'
|
||||
|
||||
interface ButtonHTMLAttributes extends HTMLAttributes {
|
||||
disabled?: boolean | undefined
|
||||
form?: string | undefined
|
||||
@ -248,6 +252,8 @@ export namespace JSX {
|
||||
name?: string | undefined
|
||||
type?: 'submit' | 'reset' | 'button' | undefined
|
||||
value?: string | ReadonlyArray<string> | number | undefined
|
||||
popovertarget?: string | undefined
|
||||
popovertargetaction?: HTMLAttributePopoverTargetAction | undefined
|
||||
|
||||
// React 19 compatibility
|
||||
formAction?: string | Function | undefined
|
||||
@ -462,6 +468,8 @@ export namespace JSX {
|
||||
type?: HTMLInputTypeAttribute | undefined
|
||||
value?: string | ReadonlyArray<string> | number | undefined
|
||||
width?: number | string | undefined
|
||||
popovertarget?: string | undefined
|
||||
popovertargetaction?: HTMLAttributePopoverTargetAction | undefined
|
||||
|
||||
// React 19 compatibility
|
||||
formAction?: string | Function | undefined
|
||||
|
Loading…
Reference in New Issue
Block a user