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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user