@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
22 lines (21 loc) • 752 B
TypeScript
import type { PropsFor } from "../../types.js";
export type MenuItemProps = PropsFor<"div">;
/**
* Menu item, equivalent to `<div className="bf-menu-item">`. Usually wrapped
* inside `<a>` or `<button>`.
* @example
* <a href="/page"><Menu.Item>Page</Menu.Item></a>
* @example
* // should get a background color when nested in a link with `active` class
* <a href="/page" className="active"><Menu.Item>Page</Menu.Item></a>
* @example
* // with step icon
* <a href="/step1">
* <Menu.Item>
* <Icon.Step variant="completed" marginRight />
* Step 1
* </Menu.Item>
* </a>
*/
declare const MenuItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
export default MenuItem;