@prosperitainova/dumbo-react-native
Version:
Dumbo for React Native Library
24 lines • 960 B
TypeScript
import React from 'react';
import { ViewProps, StyleProp, ViewStyle } from 'react-native';
import { MenuItemProps } from '../MenuItem';
/** Props for Menu component */
export type MenuProps = {
/** Items to render in the menu */
items: MenuItemProps[];
/** Height in pixels to max out the menu (defaults to 280) */
maxMenuHeight?: number;
/** Style to set on the item */
style?: StyleProp<ViewStyle>;
/** Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this. */
componentProps?: ViewProps;
};
/**
* Menu component for rendering a menu (list of clickable options)
*
* {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/Menu.tsx | Example code}
*/
export declare class Menu extends React.Component<MenuProps> {
private get styles();
render(): React.ReactNode;
}
//# sourceMappingURL=index.d.ts.map