@dolaanpls/react-awesome-button
Version:
Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons
31 lines (30 loc) • 1.22 kB
TypeScript
import * as React from 'react';
export type ButtonType = {
active?: Boolean;
after?: React.ReactNode;
before?: React.ReactNode;
between?: boolean;
children?: React.ReactNode;
className?: string;
containerProps?: any;
cssModule?: any;
disabled?: Boolean;
element?: React.ForwardRefExoticComponent<React.RefAttributes<HTMLAnchorElement | HTMLDivElement | HTMLButtonElement>>;
extra?: React.ReactNode;
href?: string;
moveEvents?: Boolean;
onMouseDown?: any;
onMouseUp?: (event: React.MouseEvent | React.TouchEvent) => void;
onPress?: any;
onPressed?: any;
onReleased?: (event: HTMLElement) => void;
placeholder?: Boolean;
ripple?: Boolean;
rootElement?: string;
size?: string;
style?: any;
type?: string;
visible?: Boolean;
};
declare const AwesomeButton: ({ active, after, before, between, children, className, containerProps, cssModule, disabled, element, extra, href, moveEvents, onMouseDown, onMouseUp, onPress, onPressed, onReleased, placeholder, ripple, rootElement, size, style, type, visible, }: ButtonType) => import("react/jsx-runtime").JSX.Element;
export default AwesomeButton;