useEditableText
See source codefunction useEditableText(
shapeId: TLShapeId,
type: string,
text: string
): {
handleBlur: () => void
handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void
handleDoubleClick: (e: any) => any
handleFocus: () => void
handleInputPointerDown: (e: React.PointerEvent) => void
handleKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void
isEditing: boolean
isEditingAnything: boolean
isEmpty: boolean
rInput: React.RefObject<HTMLTextAreaElement>
}
Parameters
Name | Description |
---|---|
| |
|
|
|
|
Returns
{
handleBlur: () => void
handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void
handleDoubleClick: (e: any) => any
handleFocus: () => void
handleInputPointerDown: (e: React.PointerEvent) => void
handleKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void
isEditing: boolean
isEditingAnything: boolean
isEmpty: boolean
rInput: React.RefObject<HTMLTextAreaElement>
}
Prev
useDialogsNext
useExportAs