Skip to content

Commit 6211e2b

Browse files
committed
Don't deprecate Box sx prop
1 parent f03ae58 commit 6211e2b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/react/src/Box/Box.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ import type {
1212
TypographyProps,
1313
} from 'styled-system'
1414
import {background, border, color, flexbox, grid, layout, position, shadow, space, typography} from 'styled-system'
15-
import type {SxProp} from '../sx'
15+
import type {BetterSystemStyleObject} from '../sx'
1616
import sx from '../sx'
1717
import type {ComponentProps} from '../utils/types'
1818

19-
type StyledBoxProps = SpaceProps &
19+
type StyledBoxProps = {
20+
sx?: BetterSystemStyleObject
21+
} & SpaceProps &
2022
ColorProps &
2123
TypographyProps &
2224
LayoutProps &
@@ -25,8 +27,7 @@ type StyledBoxProps = SpaceProps &
2527
BackgroundProps &
2628
BorderProps &
2729
PositionProps &
28-
ShadowProps &
29-
SxProp
30+
ShadowProps
3031

3132
const Box = styled.div<StyledBoxProps>(
3233
space,

0 commit comments

Comments
 (0)