Prompt Launcher
Expandable prompt input launched from a compact button.
Installation
Props
PromptLauncher
PropTypeDefaultDescription
valuestringRequiredCurrent prompt text.
setValueDispatch<SetStateAction<string>>RequiredUpdates the prompt text.
isLoadingbooleanRequiredIndicates an active submission.
setIsLoadingDispatch<SetStateAction<boolean>>RequiredUpdates the loading state.
onSubmit() => voidRequiredHandles prompt submission.
childrenReactNodeRequiredCollapsed button and expanded prompt content.
classNamestringundefinedAdditional container styles.
PromptLauncherButton
PropTypeDefaultDescription
classNamestringundefinedAdditional button styles.
PromptLauncherPromptBar
PropTypeDefaultDescription
childrenReactNodeRequiredTextarea and submit control.
classNamestringundefinedAdditional prompt bar styles.
PromptLauncherTextarea
PropTypeDefaultDescription
classNamestringundefinedAdditional textarea styles.
PromptLauncherSubmit
PropTypeDefaultDescription
classNamestringundefinedAdditional submit button styles.