Skip to content

Commit f66e4bc

Browse files
committed
Add button props to select menu item
1 parent 1c7ea7f commit f66e4bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/SelectMenu/SelectMenuItem.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ const StyledItem = styled.a.attrs(() => ({
9999
${sx};
100100
`
101101

102-
type SelectMenuItemInteralProps = {
102+
type SelectMenuItemInternalProps = {
103103
as?: React.ElementType
104104
selected?: boolean
105-
} & ComponentProps<typeof StyledItem>
105+
} & ComponentProps<typeof StyledItem> &
106+
React.ComponentProps<'button'>
106107

107-
const SelectMenuItem = forwardRef<HTMLAnchorElement, SelectMenuItemInteralProps>(
108+
const SelectMenuItem = forwardRef<HTMLAnchorElement, SelectMenuItemInternalProps>(
108109
({children, selected, theme, onClick, ...rest}, forwardedRef) => {
109110
const menuContext = useContext(MenuContext)
110111
const backupRef = useRef<HTMLAnchorElement>(null)

0 commit comments

Comments
 (0)