Lab

Feedback

Slant / Workspace

A feedback sheet on Slant’s Dialog: a recessed Textarea well that grows as you write, a character count, a screenshot option, and Send.

The theme follows the link: share a page with ?theme=moon.

Usage

  • Built on Slant’s Dialog; the body is a well, a recessed panel on the page colour with an inner hairline, holding a borderless Textarea with autosize and maxLength={500}.
  • The count sits in the well’s bottom row as the textarea’s Field.Description, and turns to the warning colour in the last 50 characters.
  • Send stays disabled while the text is blank; it closes the sheet and thanks you. Cancel, Escape or the backdrop discard a draft and say so; an empty sheet closes without a word.

Keyboard

Tabmoves from the text to the checkbox, Cancel and Send
⌘ / Ctrl + Entersends from the text, where Enter is a new line
Spacetoggles Include a screenshot
Escapecloses the sheet and discards the draft

Accessibility

  • The sheet is named by its title, and the text takes focus when it opens; focus returns to Send feedback… when it closes.
  • The count is read as the text’s description, and announced politely only in the last 50 characters, once typing pauses.
  • The outcome lands in a status region.

Feedback in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.