react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
25 lines (24 loc) • 672 B
TypeScript
import * as React from 'react';
import { BaseProps } from './types';
export interface WiredButtonProps extends BaseProps {
/**
* Disable the button.
* @default false
*/
disabled?: boolean;
/**
* Gives the button a sketchy height.
* @default 1
*/
elevation?: 1 | 2 | 3 | 4 | 5;
/**
* Method that fires when the button is clicked.
* @default -
*/
onClick?(e: MouseEvent): void;
/**
* The children.
*/
children?: React.ReactNode;
}
export declare const WiredButton: ({ className, style, onClick, elevation, disabled, children, }: WiredButtonProps) => JSX.Element;