@@ -12,7 +12,7 @@ import type {
1212 MenuSubContentProps as _MenuSubContentProps ,
1313 MenuSubTriggerProps as _MenuSubTriggerProps
1414} from '@radix-ui/react-menu' ;
15- import type { ElementType , ReactNode } from 'react' ;
15+ import type { ComponentType , ElementType , ReactNode } from 'react' ;
1616
1717import type { BaseComponentProps , BaseNodeProps , ClassValue , ThemeSize } from '@/types/other' ;
1818
@@ -44,7 +44,7 @@ export interface MenuCheckboxGroupProps extends MenuCommonProps, BaseNodeProps<_
4444
4545export interface MenuCheckboxItemProps extends BaseNodeProps < _MenuCheckboxItemProps > {
4646 classNames ?: Pick < MenuClassNames , 'item' | 'itemIndicator' | 'shortcut' > ;
47- component ?: ElementType < MenuCheckboxItemProps > ;
47+ component ?: ElementType < _MenuCheckboxItemProps > ;
4848 indicatorComponent ?: ElementType < MenuItemIndicatorProps > ;
4949 indicatorIcon ?: ReactNode ;
5050 leading ?: ReactNode ;
@@ -63,15 +63,15 @@ export type MenuContentProps = BaseNodeProps<_MenuContentProps> & {
6363// MenuItem
6464export interface MenuItemProps extends BaseNodeProps < _MenuItemProps > {
6565 classNames ?: Pick < MenuClassNames , 'item' | 'shortcut' > ;
66- component ?: ElementType < MenuItemProps > ;
66+ component ?: ComponentType < _MenuItemProps > ;
6767 leading ?: ReactNode ;
6868 shortcut ?: string | string [ ] ;
6969 trailing ?: ReactNode ;
7070}
7171
72- export type MenuItemIndicatorProps = BaseNodeProps < _MenuItemIndicatorProps > & {
73- component ?: ElementType < MenuItemIndicatorProps > ;
74- } ;
72+ export interface MenuItemIndicatorProps extends BaseNodeProps < _MenuItemIndicatorProps > {
73+ component ?: ComponentType < _MenuItemIndicatorProps > ;
74+ }
7575
7676// MenuLabel
7777export interface MenuLabelProps extends BaseNodeProps < _MenuLabelProps > {
0 commit comments