Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading