fix(ui): extend DialogBodyProps with native div element props

DialogBodyProps previously only extended DialogBodyOwnProps,
meaning native HTML attributes like aria-*, data-*, etc.
could not be passed to the underlying div element.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-03 12:44:04 +01:00
parent e8c8e0fe30
commit 8d40a035dc
+3 -1
View File
@@ -68,7 +68,9 @@ export type DialogBodyOwnProps = {
* Props for the DialogBody component.
* @public
*/
export interface DialogBodyProps extends DialogBodyOwnProps {}
export interface DialogBodyProps
extends DialogBodyOwnProps,
Omit<React.ComponentPropsWithoutRef<'div'>, keyof DialogBodyOwnProps> {}
/** @public */
export type DialogFooterOwnProps = {