soda-material
Version:
A component library that may follow [material design 3](https://m3.material.io/components) (a.k.a. material you)
16 lines (15 loc) • 783 B
TypeScript
import * as Soda from '@/components/menu';
import * as React from 'react';
export interface NestedMenuProps extends Soda.Props {
label?: React.ReactNode;
nested?: boolean;
children?: React.ReactNode;
defaultOpen?: boolean;
}
/**
* The root menu must has a label property, which will toggle the whole menu,
* any sub menu in it will automatically become a `MenuItem`.
* Based on floating-ui, supports keyboard navigation.
*/
export declare const NestedMenu: React.ForwardRefExoticComponent<NestedMenuProps & Omit<React.HTMLProps<HTMLElement>, "ref" | keyof NestedMenuProps> & React.RefAttributes<HTMLElement>>;
export declare const NestedMenuItem: React.ForwardRefExoticComponent<Soda.Props & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;