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>

25 lines (24 loc) 955 B
import React from "react"; import { FilledTextFieldProps as MuiTextFieldProps } from "@mui/material/TextField"; import { EndAdornmentProps } from "./EndAdornment"; import { InputProps } from "./Input"; export interface TextFieldProps extends Omit<MuiTextFieldProps, "variant" | "color" | "size" | "InputProps"> { /** * The color of the component. The prop defaults to the value (`'secondary'`) */ color?: InputProps["color"]; /** * The size of the component. The prop defaults to the value (`'md'`) */ size?: InputProps["size"]; /** * Props passing to the `InputProps` element. */ InputProps?: Omit<InputProps, "overrideErrorAdornment">; /** * If not undefined, an action button is rendered as part of end adornment. */ actionButtonProps?: EndAdornmentProps["actionButtonProps"]; } declare const TextField: React.FC<TextFieldProps>; export default TextField;