UNPKG

@sinchsmb/ui-kit

Version:

UI kit for SinchSMB frontend

19 lines (18 loc) 677 B
/// <reference types="react" /> import { CommonProps } from '../../types'; import { ButtonProps } from '../Button/Button'; /** Props for {@link FieldSuffixTextButton} */ export interface FieldSuffixTextButtonProps extends CommonProps, Pick<ButtonProps, 'onClick' | 'onMouseDown' | 'ariaLabel'> { /** Text of button */ children: string; } /** * An text button that can be added as a suffix to fields that have the property `suffix` * * ```tsx * <TextField * suffix={<FieldSuffixTextButton onClick={handleClick}>Reset password</FieldSuffixTextButton>} * /> * ``` */ export declare function FieldSuffixTextButton(props: FieldSuffixTextButtonProps): JSX.Element;