Skip to content

Commit 300c3b9

Browse files
authored
Don't deprecate Box sx prop (#5459)
1 parent 215d8e6 commit 300c3b9

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy