react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
40 lines (39 loc) • 1.05 kB
TypeScript
import * as React from 'react';
import { BaseProps } from './types';
import { Icon } from './utils/icons';
export interface WiredIconButtonProps extends BaseProps {
/**
* Disable the button.
* @default false
*/
disabled?: boolean;
/**
* Size of the icon.
* @default 24
*/
iconSize?: number;
/**
* The line color of the button.
* @default #018786
*/
lineColor?: string;
/**
* The color of the icon.
* @default #018786
*/
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 WiredIconButton: ({ disabled, lineColor, iconColor, icon, iconSize, onClick, children, className, style, }: WiredIconButtonProps) => JSX.Element;