@base-ui/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
34 lines • 1.06 kB
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
/**
* A link in the menu that can be used to navigate to a different page or section.
* Renders an `<a>` element.
*
* Documentation: [Base UI Menu](https://base-ui.com/react/components/menu)
*/
export declare const MenuLinkItem: React.ForwardRefExoticComponent<Omit<MenuLinkItemProps, "ref"> & React.RefAttributes<Element>>;
export interface MenuLinkItemState {
/**
* Whether the item is highlighted.
*/
highlighted: boolean;
}
export interface MenuLinkItemProps extends BaseUIComponentProps<'a', MenuLinkItem.State> {
/**
* Overrides the text label to use when the item is matched during keyboard text navigation.
*/
label?: string | undefined;
/**
* @ignore
*/
id?: string | undefined;
/**
* Whether to close the menu when the item is clicked.
* @default false
*/
closeOnClick?: boolean | undefined;
}
export declare namespace MenuLinkItem {
type State = MenuLinkItemState;
type Props = MenuLinkItemProps;
}