react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
35 lines (34 loc) • 931 B
TypeScript
import * as React from 'react';
import { BaseProps } from './types';
import { Icon } from './utils/icons';
export interface WiredFabProps extends BaseProps {
/**
* Disable the button.
* @default false
*/
disabled?: boolean;
/**
* The background color of the button.
* @default #018786
*/
bgColor?: string;
/**
* The color of the icon.
* @default white
*/
iconColor?: string;
/**
* Name of the icon (from Material icons)
* @default favorite
*/
icon?: Icon;
/**
* Event fired when button is clicked/submitted
*/
onClick?(e: MouseEvent): void;
/**
* The children. Optionally pass in your own icon.
*/
children?: React.ReactNode;
}
export declare const WiredFab: ({ disabled, bgColor, iconColor, icon, onClick, children, className, style, }: WiredFabProps) => JSX.Element;