UNPKG

react-curse

Version:

A curses-like blazingly fast react renderer

15 lines (14 loc) 537 B
import { Color } from '../screen'; import { type TextProps } from './Text'; import React from 'react'; interface InputProps extends TextProps { focus?: boolean; type?: 'text' | 'password' | 'hidden'; initialValue?: string; cursorBackground?: Color; onCancel?: () => void; onChange?: (_: any) => void; onSubmit?: (_: any) => void; } export default function Input({ focus, type, initialValue, cursorBackground, onCancel, onChange, onSubmit, width, height, ...props }: InputProps): React.JSX.Element; export {};