diff --git a/.changeset/quiet-icons-obey.md b/.changeset/quiet-icons-obey.md new file mode 100644 index 00000000000..2841b0c9eae --- /dev/null +++ b/.changeset/quiet-icons-obey.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Add `sx` prop to Dialog v2 diff --git a/src/Dialog/Dialog.tsx b/src/Dialog/Dialog.tsx index 924f573e2a5..37354b6452b 100644 --- a/src/Dialog/Dialog.tsx +++ b/src/Dialog/Dialog.tsx @@ -47,7 +47,7 @@ export type DialogButtonProps = ButtonProps & { /** * Props to customize the rendering of the Dialog. */ -export interface DialogProps { +export interface DialogProps extends SxProp { /** * Title of the Dialog. Also serves as the aria-label for this Dialog. */ @@ -262,6 +262,7 @@ const _Dialog = React.forwardRef {header} {body}