Browse Source

type: update string type with React.HTMLAttributeAnchorTarget (#43129)

pull/43139/head
lijianan 1 year ago
committed by GitHub
parent
commit
209f062131
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/button/button.tsx

2
components/button/button.tsx

@ -55,7 +55,7 @@ export interface BaseButtonProps {
export type AnchorButtonProps = {
href: string;
target?: string;
target?: React.HTMLAttributeAnchorTarget;
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
} & BaseButtonProps &
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, 'type' | 'onClick'>;

Loading…
Cancel
Save