@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
17 lines (16 loc) • 631 B
text/typescript
import { ItemProps } from '@zag-js/menu';
import { Assign } from '../../types';
import { HTMLProps, PolymorphicProps } from '../factory';
import { ForwardRefExoticComponent, RefAttributes } from 'react';
interface ItemBaseProps extends ItemProps {
/**
* The function to call when the item is selected
*/
onSelect?: VoidFunction;
}
export interface MenuItemBaseProps extends ItemBaseProps, PolymorphicProps {
}
export interface MenuItemProps extends Assign<HTMLProps<'div'>, MenuItemBaseProps> {
}
export declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<HTMLDivElement>>;
export {};