FooterText
Text the reader types, in a hairline field whose edge darkens to the page's ink while it is being typed in.
@internote/canvas-sdk/reactOn this page
import { FooterText } from '@internote/canvas-sdk/react';One line by default, where Enter calls onSubmit. multiline makes it a field that grows with what is written, where Enter starts a new line and ⌘/Ctrl+Enter calls onSubmit. monospace sets the field — its text and its placeholder alike — in a face whose characters do not run together, for text read symbol by symbol such as a maths answer. The ref reaches the element, for a caller that inserts at the caret.
#Props
Also takes className. Any other prop is passed to the rendered element.
ariaLabelThe field's accessible name, when no visible label names it.
stringdescribedByThe id of an element that describes the field, such as a preview of what was typed.
stringdisabledWhether the field is shown but cannot be typed in.
booleaninvalidWhether to mark the text as not one the environment can use.
booleanlabelledByThe id of the element that names the field, such as a question's prompt.
stringmonospaceSet the field, placeholder included, in a monospaced face.
booleanmultilineLet the text run to several lines, the field growing to hold them.
booleanonChangeCalled with the new text on every keystroke.
(value: string) => voidonSubmitCalled when the reader submits: Enter on one line, ⌘/Ctrl+Enter on several.
() => voidplaceholderShown while the field is empty.
stringvalueWhat is in the field.
stringDeclared in packages/canvas-sdk/src/react/footer-controls.tsx:59.