UNPKG

@vlinderclimate/net-zero-ui

Version:

<div align="center"> <img src="https://storage.yandexcloud.net/static.vlinderstorage.com/Telegram_VlinderTech.png" width=200 /> </div> <h1 align="center">Net Zero UI kit</h1>

31 lines (30 loc) 978 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"]; variant?: ButtonProps["variant"]; onClick: ButtonProps["onClick"]; }; } declare const EndAdornment: React.FC<EndAdornmentProps>; export default EndAdornment;