grommet
Version:
focus on the essential experience
23 lines (19 loc) • 1.39 kB
TypeScript
import * as React from "react";
export interface MenuProps {
a11yTitle?: string;
alignSelf?: "start" | "center" | "end" | "stretch";
gridArea?: string;
margin?: "none" | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | {bottom?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,horizontal?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,left?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,right?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,top?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,vertical?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string} | string;
disabled?: boolean;
dropAlign?: {top?: "top" | "bottom",bottom?: "top" | "bottom",left?: "right" | "left",right?: "right" | "left"};
dropBackground?: string | {color?: string,opacity?: "weak" | "medium" | "strong" | boolean};
dropTarget?: object;
justifyContent?: "start" | "center" | "end" | "between" | "around" | "stretch";
icon?: boolean | React.ReactNode;
items: object[];
label?: string | React.ReactNode;
messages?: {closeMenu?: string,openMenu?: string};
size?: "small" | "medium" | "large" | "xlarge" | string;
}
declare const Menu: React.ComponentClass<MenuProps & JSX.IntrinsicElements['button']>;
export { Menu };