grommet
Version:
focus on the essential experience
21 lines (17 loc) • 1.18 kB
TypeScript
import * as React from "react";
import { ButtonProps } from "../Button";
export interface DropButtonProps {
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",right?: "left" | "right",left?: "left" | "right"};
dropContent: JSX.Element;
dropTarget?: object;
onClose?: ((...args: any[]) => any);
onOpen?: ((...args: any[]) => any);
open?: boolean;
}
declare const DropButton: React.ComponentClass<DropButtonProps & ButtonProps>;
export { DropButton };