On this page
@addTagHelper *, Webority.Ui.RazorOn a detail page
Use the value tag for each fact on a record, so a missing one always reads the same.
On a detail page
A missing value reads Not set in muted text, so an empty field is never mistaken for a blank one.
- Customer
- Orient Bell Ltd
- Phone
- Not set
- Billing address
- Flat 4B, Sector 18 Gurugram, Haryana
Every option
Every value of every prop, one cell each.
value: text or empty
value="Orient Bell Ltd"Orient Bell Ltd
value="" (blank shows the empty text)Not set
empty-text: any text
empty-text="Not set" (default)Not set
empty-text="No budget set"No budget set
multiline: both values
multiline="false" (default)Flat 4B, Sector 18 Gurugram, Haryana
multiline="true"Flat 4B, Sector 18 Gurugram, Haryana
Guidance
What to do, and what to avoid.
Use it when
- A field on a detail page may be missing and should say so in a muted word.
- A value holds line breaks that must stay, such as an address or a note.
Reach for something else when
- A label and value pair among several facts. → AppDescriptions
- The value is a status rather than text. → AppStatusBadge
Reference
Try every prop, read the full list, and check keyboard and screen reader behaviour.
3 props. The 3 most used come first.
Used on most screens 3 props
| Prop | Type | Default | Description |
|---|---|---|---|
| valuedefault - | string | - | The value to show, HTML-encoded. Null or blank shows the empty text. |
| empty-textdefault Not set | string | Not set | What to show, muted, when the value is null or blank. |
| multilinedefault false | bool | false | Keeps the line breaks in the value. |
Screen reader
1 notes- The empty text is real text, muted by colour only, so a screen reader reads it like any other value.