feat: refactor button with new design (#3343)

This commit is contained in:
Qi
2023-07-21 19:07:28 +08:00
committed by GitHub
parent a4f60f22cf
commit 439ef1ba90
42 changed files with 665 additions and 473 deletions
@@ -1,21 +1,20 @@
import { ArrowDownSmallIcon } from '@blocksuite/icons';
import { forwardRef } from 'react';
import type { ButtonProps } from '../button';
import { StyledButton } from './styles';
import { Button, type ButtonProps } from '../button';
export const MenuTrigger = forwardRef<HTMLButtonElement, ButtonProps>(
({ children, ...props }, ref) => {
return (
<StyledButton
<Button
type="plain"
ref={ref}
icon={<ArrowDownSmallIcon />}
iconPosition="end"
noBorder={true}
{...props}
>
{children}
</StyledButton>
</Button>
);
}
);