UNPKG

@stakefish/ui

Version:

<div align="center"> <a href="https://www.npmjs.com/package/@stakefish/ui"><img src="https://gateway.pinata.cloud/ipfs/QmbZL1ceA8Yiz2pKALTg919jYx141DPUGegC9L4XpyayW5" width="300" /></a> </div>

30 lines (29 loc) 935 B
import React from "react"; import { TextFieldProps } from "./TextField"; import { ButtonProps } from "./Button"; import { InputProps } from "./Input"; export interface EndAdornmentProps { /** * The size of the component. The prop defaults to the value (`'md'`) */ size: TextFieldProps["size"]; /** * The error icon. */ error?: TextFieldProps["error"]; /** * The ending adornment that's neither error icon nor action button. */ endAdornment?: InputProps["endAdornment"]; /** * If not undefined, an action button is rendered as part of end adornment. */ actionButtonProps?: { disabled: ButtonProps["disabled"]; children: ButtonProps["children"]; color?: ButtonProps["color"]; onClick: ButtonProps["onClick"]; }; } declare const EndAdornment: React.FC<EndAdornmentProps>; export default EndAdornment;