Skip to content

ReadValue ​

ReadValue is a value that is read, not edited, in the place of a control.

When to use ​

Use it in a Field or a Pair on a screen that is only viewed, or for a value that cannot be changed. Identifiers use mono; a value that is not set is a muted sentence.

Props ​

PropDefaultDescription
valuerequiredThe value
monofalseThe monospace font, with figures of equal width
mutedfalseNot set, or left at the default
clampfalseOne line with an ellipsis

Contract ​

It has no outline: it is body text, and the Field or the Pair around it holds the distances. Inside a control (a pair or a list item) it is trimmed to its ink; elsewhere it keeps its line box, trimmed only on the side that touches the edge of a container. With clamp the full text shows on hover and on keyboard focus when it is clipped.

Example ​

ReadValue

Released under the Apache-2.0 license.