/** * @file index.tsx * * @fileoverview Button component. Renders a button component styled according * to theme properties. */ import React from 'react'; import { BordersProps, ColorProps, SpaceProps } from 'styled-system'; export declare type ButtonProps = ColorProps & SpaceProps & BordersProps & React.ButtonHTMLAttributes & React.LinkHTMLAttributes & { css?: any; ref?: any; /** * Text for the button * * @default null */ children?: React.ReactNode; /** * The style for the button. * * @default "default" */ buttonStyle?: 'primary' | 'secondary' | 'default' | 'success' | 'danger' | 'warning' | 'twitter' | 'google' | 'facebook' | 'linkedin' | 'xing'; /** * Wheter or not the button is full width. * * @default "false" */ block?: boolean; /** * Single icon button. * * @default "false" */ iconed?: boolean; /** * Floating action button. * * @default "false" */ fab?: boolean; /** * Wheter or not the button is a raised button. * * @default "true" */ raised?: boolean; /** * Wheter or not the button is a bordered button. * * @default "false" */ bordered?: boolean; /** * The theme props is passed automatically to the component via styled components. * * @default "null" */ theme?: any; /** * Color. */ color?: string; /** * The tag to use. * * @default "button" */ tag?: any; }; /** * A button component can be used whenever an action has to be performed either on a form or other places. * Do not use buttons for links as for links we should always use tags for proper link semantics. Buttons can have multiple styles applied to them as seen in the * buttonStyle prop. */ export declare const Button: React.ForwardRefExoticComponent & React.RefAttributes>; export default Button;