react-elegant-ui
Version:
Elegant UI components, made by BEM best practices for react
35 lines (34 loc) • 821 B
TypeScript
import { FC, HTMLAttributes, Ref } from 'react';
import { IComponentHTMLElement } from '../../../types/IComponent';
import './Menu-Item.css';
export interface IMenuItem<T extends HTMLElement = HTMLDivElement> extends IComponentHTMLElement<T> {
/**
* Make item unavailable
*/
disabled?: boolean;
/**
* Don't show item
*/
hidden?: boolean;
/**
* Draw cursor on item
*/
cursor?: boolean;
/**
* Don't apply default styles
*
* It useful for unusual custom content
*/
raw?: boolean;
/**
* Ref to `id` property
*
* It useful to handle `id` property avoid use ref to DOM node
*/
idRef?: Ref<string>;
/**
* Addon props
*/
addonProps?: HTMLAttributes<T>;
}
export declare const MenuItem: FC<IMenuItem>;