import React, { forwardRef } from "react"; import cl from "clsx"; import ListItem, { ListItemType } from "./Item"; export interface ListProps extends React.HTMLAttributes { /** * Menu list content */ children: React.ReactNode; } export interface ListType extends React.ForwardRefExoticComponent< ListProps & React.RefAttributes > { Item: ListItemType; } export const List = forwardRef(({ className, children, ...rest }, ref) => ( )) as ListType; List.Item = ListItem; export default List;