Skip to content

Commit 6ffb87e

Browse files
authored
docs: add LabeledValue to Component Decision Tree in S2 skill (#10094)
* docs: add LabeledValue to Component Decision Tree in S2 skill * change to "non-editable value with a label"
1 parent b876c90 commit 6ffb87e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/dev/s2-docs/skills/react-spectrum-s2/component-decision-tree.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ If the user does not specify which component they would like to use, choose one
3434

3535
## Text and value input
3636

37+
- Use `LabeledValue` to display a non-editable value with a label (string, number, date, time, range, or list of strings) — prefer it over a disabled `TextField` or hand-rolled label-plus-text markup. It applies locale-aware formatting to numbers, dates, and times via `formatOptions`.
3738
- Use `TextField` for single-line plain text input.
3839
- Use `SearchField` for a search query with search-specific clear and submit behavior.
3940
- Use `TextArea` for multi-line text.

0 commit comments

Comments
 (0)