import React from 'react'; import { ViewProps } from 'remax/one'; import { Props as SpaceProps } from '../space'; import '../_init'; export interface Props extends Partial> { children?: React.ReactNode; /** * 是否是行内元素 * @default true */ block?: boolean; /** * 按钮大小 * @default normal */ size?: 'normal' | 'small' | 'action' | 'tiny'; /** * 阴影 * @default false */ shadow?: boolean; /** * 类型 * @default default */ type?: 'default' | 'primary' | 'attract'; /** * 镂空 * @default false */ ghost?: boolean; /** * 图标 */ icon?: React.ReactNode; /** * 粗体 * @default false */ bold?: boolean; /** * 禁用 * @default false */ disabled?: boolean; /** * 是否是圆形按钮 * @default false */ round?: boolean; /** * 是否是加载状态 * @default false */ loading?: boolean; /** * 适老模式,开启后不同type的按钮文字和尺寸都会变大 */ elderly?: boolean; } declare const Button: { ({ children, className, size, shadow, type, icon, bold, round, block, ghost, loading, disabled, style, ...props }: Props): React.JSX.Element; Group({ className, ...props }: SpaceProps): React.JSX.Element; }; export default Button;