FooterEditableValue
A reading that can be typed into: the value as it is set, and a number field in its place while the reader is changing it.
@internote/canvas-sdk/reactOn this page
import { FooterEditableValue } from '@internote/canvas-sdk/react';A value on a slider is read far more often than it is set, so it is written as maths until the moment it is not. Enter and blur commit, and Escape puts the old value back.
The number field is there all the time, transparent over the reading, so a tap focuses it directly and raises the keyboard, as FooterMath's does.
#Props
Takes no className, style or id.
ariaLabelThe accessible name of both the reading and the field.
stringdisabledWhether the value is only read: it does not open for typing.
booleandisplayHow the value reads at rest — usually the maths it stands for.
ReactNodemaxThe highest value a commit can give.
numberminThe lowest value a commit can give.
numberonCommitCalled on Enter or blur with the typed number, clamped to
min/max; not called for empty or non-numeric input.(value: number) => voidstepThe number field's step.
numberDefault
1valueThe current value, which the number field starts from.
numberDeclared in packages/canvas-sdk/src/react/footer-notation.tsx:241.