@plurid/plurid-ui-components-react
Version:
Plurid User Interface Components for React
29 lines (28 loc) • 854 B
TypeScript
import React from 'react';
import { Theme } from '@plurid/plurid-themes';
import { PluridIconProperties } from '@plurid/plurid-icons-react';
export interface FormbuttonProperties {
text: string;
Icon: React.FC<PluridIconProperties>;
atClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
link?: string;
target?: string;
theme?: Theme;
devisible?: boolean;
level?: number;
iconPosition?: 'left' | 'center' | 'right';
/**
* Renders the button as is (without hover, cursor effects, and on click listen).
*/
inactive?: boolean;
hoverEffect?: boolean;
style?: React.CSSProperties;
className?: string;
}
/**
* Renders an icon and a descriptive text, button-like.
*
* @param properties
*/
declare const Formbutton: React.FC<FormbuttonProperties>;
export default Formbutton;