UNPKG

@sb1/ffe-buttons-react

Version:

React implementation of ffe-buttons

11 lines (10 loc) 591 B
import React, { ElementType, ReactElement } from 'react'; import { BaseButtonProps } from './BaseButton'; export type TaskButtonProps<As extends ElementType = 'button'> = Omit<BaseButtonProps<As>, 'buttonType' | 'leftIcon' | 'rightIcon'> & { /** icon element shown to the left of the label */ icon: ReactElement; }; export declare const TaskButton: <As extends ElementType>(props: Omit<BaseButtonProps<As>, "buttonType" | "leftIcon" | "rightIcon"> & { /** icon element shown to the left of the label */ icon: ReactElement; } & React.RefAttributes<any>) => React.JSX.Element;