Skip to content

Commit 2620a4f

Browse files
committed
allow null for prefix and suffix
1 parent 5bec358 commit 2620a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export interface ButtonProps extends Omit<BoxProps, 'prefix'> {
1818
| 'top'
1919
| 'bottom'
2020
| 'initial'
21-
suffix?: React.ReactElement & { props?: { sx?: ThemeUIStyleObject } }
22-
prefix?: React.ReactElement & { props?: { sx?: ThemeUIStyleObject } }
21+
suffix?: (React.ReactElement & { props?: { sx?: ThemeUIStyleObject } }) | null
22+
prefix?: (React.ReactElement & { props?: { sx?: ThemeUIStyleObject } }) | null
2323
inverted?: boolean
2424
href?: string
2525
internal?: boolean

0 commit comments

Comments
 (0)