material-you-react
Version:
Material You: Material You (M3) Design system and its components for simple integration with Next.Js or other react-based frameworks
14 lines (13 loc) • 580 B
TypeScript
import React from "react";
type MenuProps = {
children: React.ReactNode;
displayLimit?: number;
};
/**
* Props for the Menu component.
* @params {React.ReactNode} `children` - The content to be rendered inside the menu. Accepts `MenuItem` as a childrens.
* @params {number} `displayLimit` - Optional. Specifies the maximum number of items to display before enabling scroll.
* If not provided, the menu will expand to fit all content without scrolling.
*/
export default function Menu(props: MenuProps): React.JSX.Element;
export {};