diff --git a/src/components/expression/expression.tsx b/src/components/expression/expression.tsx index 69869177ed1b..6c732ee94591 100644 --- a/src/components/expression/expression.tsx +++ b/src/components/expression/expression.tsx @@ -22,6 +22,7 @@ import React, { HTMLAttributes, MouseEventHandler, ReactNode, + FunctionComponent, } from 'react'; import classNames from 'classnames'; import { CommonProps, keysOf, ExclusiveUnion } from '../common'; @@ -99,13 +100,14 @@ export type EuiExpressionProps = CommonProps & { }; type Buttonlike = EuiExpressionProps & - ButtonHTMLAttributes & { + Omit, 'value'> & { onClick: MouseEventHandler; }; -type Spanlike = EuiExpressionProps & HTMLAttributes; +type Spanlike = EuiExpressionProps & + Omit, 'value'>; -export const EuiExpression: React.FunctionComponent> = ({