API • Docs
Props of RichInput.
For other props not mentioned below will be passed to input.
defaultValue
is omitted for simplicity of logic.
Omit
<JSX.IntrinsicElements
["input"
],"children"
>
optional
children:Renderer
Render function to create customized view from value.
This function should return ReactNodes which texts are positioned the same as textarea (see examples for detailed usage).
On the rendered nodes, currently limited event handlers will work.
onClick
onMouseOver
onMouseOut
onMouseMove
onMouseDown
onMouseUp
undefined
optional
autoHeight:boolean
If true, textarea height is automatically resized and height of style prop does not work. Set maxHeight
to style prop if you need limit.
undefined
optional
onSelectionChange: (pos
) =>void
Called when selection in textarea changes. It gives position of caret at the time, which is useful to position menu.
• pos: CaretPosition
void
undefined