diff --git a/.changeset/few-coins-kick.md b/.changeset/few-coins-kick.md new file mode 100644 index 00000000000..4479640c18c --- /dev/null +++ b/.changeset/few-coins-kick.md @@ -0,0 +1,5 @@ +--- +"@primer/react": minor +--- + +Deprecate use of sx prop by deprecating the `SxProp` type definition diff --git a/packages/react/src/sx.ts b/packages/react/src/sx.ts index 5b9a20fc011..0d11b6cc647 100644 --- a/packages/react/src/sx.ts +++ b/packages/react/src/sx.ts @@ -26,6 +26,7 @@ type CSSSelectorObject = { export type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject | CSSCustomProperties | CSSSelectorObject export interface SxProp { + /** @deprecated Use CSS modules for styling instead */ sx?: BetterSystemStyleObject }