Add prompt() plugin API (#121)

This commit is contained in:
Gregory Schier
2024-10-01 08:32:42 -07:00
committed by GitHub
parent be60e4648a
commit 7e4f807f75
26 changed files with 220 additions and 82 deletions

View File

@@ -24,7 +24,7 @@ export type InputProps = Omit<
| 'onKeyDown'
| 'readOnly'
> & {
name: string;
name?: string;
type?: 'text' | 'password';
label: string;
hideLabel?: boolean;
@@ -41,7 +41,7 @@ export type InputProps = Omit<
rightSlot?: ReactNode;
size?: 'xs' | 'sm' | 'md' | 'auto';
className?: string;
placeholder: string;
placeholder?: string;
validate?: boolean | ((v: string) => boolean);
require?: boolean;
wrapLines?: boolean;