@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>
29 lines (28 loc) • 1.11 kB
TypeScript
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, "color" | "variant" | "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"];
/**
* The variant of the component. The prop defaults to the value (`'filled'`)
*/
variant?: "filled" | "outlined" | "standard";
}
declare const TextField: React.FC<TextFieldProps>;
export default TextField;