/** * Copyright 2019, SumUp Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { type ForwardRefExoticComponent, type PropsWithoutRef, type ReactElement, type RefAttributes } from 'react'; import type { IconComponentType, IconProps } from '@sumup-oss/icons'; import { type SharedButtonProps } from './base.js'; export type IconButtonProps = SharedButtonProps & { /** * Communicates the action that will be performed when the user interacts * with the button. Use one strong, clear imperative verb and follow with a * one-word object if needed to clarify. * Displayed on hover and accessible to screen readers. */ children?: ReactElement | string; /** * @deprecated * * Use the `children` prop instead. */ label?: string; /** * The icon provides context for the button, such as a “search” icon for a * search field submission. */ icon?: IconComponentType; }; /** * The IconButton component enables the user to perform an action or navigate * to a different screen. */ export declare const IconButton: ForwardRefExoticComponent & RefAttributes>;