property TextEditorProps.maxLength

Shows a counter and marks the textarea invalid past it. It doesn't stop the typing, so the caller must still refuse a longer text.

Type

number

Usage

import { type TextEditorProps } from "src/components/editor/TextEditor.tsx";