property CommentFormProps.cancelWhenEmpty

Shows Cancel only once there is text to throw away, and doesn't cancel on Escape. For the new-comment form, which has nothing to close.

Type

boolean

Usage

import { type CommentFormProps } from "src/components/comment/CommentForm.tsx";