Skip to content

Commit

Permalink
Deprecate use of sx prop by deprecating the SxProp type definition (#…
Browse files Browse the repository at this point in the history
…5443)

* Use DeprecatedSxProp instead of SxProp

* Create few-coins-kick.md

* Fix typo in changeset description

* Use SxProp and deprecate that instead

* Fix typo in changeset description

* Fix typo in changeset description
  • Loading branch information
jonrohan authored Dec 18, 2024
1 parent b07f806 commit f03ae58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-coins-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Deprecate use of sx prop by deprecating the `SxProp` type definition
1 change: 1 addition & 0 deletions packages/react/src/sx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f03ae58

Please sign in to comment.