import React, { ReactNode } from 'react' import { Button, ButtonProps } from 'react-icecream' import { AddIcon } from 'react-icecream/icons' interface ButtonLikeLinkProps extends Pick, 'type' | 'size' | 'icon' | 'loading' | 'disabled'> { href: string children: ReactNode } function ButtonLikeLink({ href, children, ...buttonProps }: ButtonLikeLinkProps) { return ( {...buttonProps} style={{ display: 'inline-block', textDecoration: 'none' }} as={props => } >{children} ) } export default function Demo() { return (
Qiniu disabled } href="https://www.qiniu.com">with add icon
) }