UNPKG

@devfamily/admiral

Version:

Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.

17 lines (16 loc) 656 B
import React from 'react'; export declare type ButtonSizeType = 'XS' | 'S' | 'M' | 'L'; export declare type ButtonViewType = 'primary' | 'clear' | 'ghost' | 'secondary'; export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<any>, 'type'>, Omit<React.AnchorHTMLAttributes<any>, 'type'> { component?: string | React.JSXElementConstructor<any>; className?: string; size?: ButtonSizeType; view?: ButtonViewType; loading?: boolean; disabled?: boolean; iconLeft?: React.ReactNode; iconRight?: React.ReactNode; type?: string; onClick?: React.EventHandler<React.MouseEvent>; children?: React.ReactNode; }