@engie-group/fluid-design-system-react
Version:
Fluid Design System React
10 lines (9 loc) • 683 B
TypeScript
import React from 'react';
import { AsChild, HTMLAttributesWithoutComponentProps } from '../../../utils/typeHelpers';
import { NJList } from '../../list';
type NJMenuItemCommonProps = Omit<NJList.ItemProps, 'wrapperAsChild' | 'interactive' | 'secondaryText' | 'trailingIcon' | 'textDistribution' | 'virtuallyFocused' | keyof React.ComponentPropsWithoutRef<'li'>> & React.PropsWithChildren<{
label?: string;
}>;
export type NJMenuItemProps = NJMenuItemCommonProps & AsChild<HTMLAttributesWithoutComponentProps<'button', NJMenuItemCommonProps>>;
export declare const NJMenuItem: React.ForwardRefExoticComponent<NJMenuItemProps & React.RefAttributes<HTMLButtonElement>>;
export {};