@types/carbon-components-react
Version:
TypeScript definitions for carbon-components-react
17 lines (11 loc) • 646 B
TypeScript
import { ReactAnchorAttr, RequiresChildrenProps, FCReturn, ForwardRefProps, } from "../../../typings/shared";
import { LinkProps } from "./Link";
type ExcludedAttributes = "children" | "ref" | "tabIndex";
export interface HeaderMenuItemPropsBase extends RequiresChildrenProps {
isCurrentPage?: boolean | undefined,
}
export type HeaderMenuItemProps<E extends object = ReactAnchorAttr> = Omit<LinkProps<E>, ExcludedAttributes> & HeaderMenuItemPropsBase;
declare function HeaderMenuItem<E extends object = ReactAnchorAttr, R = HTMLElement>(
props: ForwardRefProps<R, HeaderMenuItemProps<E>>
): FCReturn;
export default HeaderMenuItem;