/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import './field_button.scss'; import classNames from 'classnames'; import React, { ReactNode, HTMLAttributes, ButtonHTMLAttributes } from 'react'; import { CommonProps } from '@elastic/eui'; export interface FieldButtonProps extends HTMLAttributes { /** * Label for the button */ fieldName: ReactNode; /** * Icon representing the field type. * Recommend using FieldIcon */ fieldIcon?: ReactNode; /** * An optional node to place inside and at the end of the ) : (
{innerContent}
)} {fieldAction &&
{fieldAction}
} ); }