/** * Flowtype definitions for Button * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 * @flow */ import React from "react"; export type Size = "small" | "medium" | "large" | "xlarge"; export interface SizeByBreakpoint { [key: number]: Size; } export interface Props { /** * The root node component. Use a string for an HTML element or a component. Defaults to "button". */ as?: C; /** * The content of the component. */ children?: React.ReactNode; /** * The size of the component. Defaults to "medium". */ size?: Size | SizeByBreakpoint; /** * The variant to use. Defaults to "primary". */ variant?: "primary" | "secondary" | "tertiary" | "ghost"; } export type ButtonProps = { ...Props, ...$Diff, { [key: $Keys>]: any }>, }; declare export default function Button( x: ButtonProps ): React.ReactElement>;