@payfit/unity-components
Version:
20 lines (19 loc) • 775 B
TypeScript
import { PropsWithChildren } from 'react';
export interface MenuHeaderProps {
/** Adds classes to the header element. */
className?: string;
}
/**
* Adds a non-interactive heading above a group of menu items.
*
* Use `MenuHeader` for contextual text that is not a selectable section
* heading. Use `MenuSection` when the heading labels a semantic group of
* actions.
* @param props - Header content and optional classes.
* @param props.children - The non-interactive heading content.
* @param props.className - Adds classes to the header element.
*/
export declare function MenuHeader({ children, className, }: PropsWithChildren<MenuHeaderProps>): import('react/jsx-runtime').JSX.Element;
export declare namespace MenuHeader {
var displayName: string;
}