On this page
@addTagHelper *, Webority.Ui.RazorTwo lines
Use a main value over a quieter line for a name and its email, or an invoice and its date.
Primary and secondary
Asha Raoasha@example.com
Empty primary
-
0items
Links
Make the main value a link when the row should take the person to the record it names.
A link
Invoice 1042Due 30 Nov
Codes and figures
Set a code in monospace so its characters line up, and right-align figures so a column of amounts reads cleanly.
Monospace reference
INV-2026-1042Raised 4 Nov
Right-aligned figures
32 pending
1,24,500Incl. GST
In a table
Each column returns an AppCell, and an amount column aligns end so its header sits over the figures.
Invoices table
| Name | Reference | Items | Amount |
|---|---|---|---|
Asha Raoasha@example.com |
INV-2026-1042Raised 4 Nov |
32 pending |
1,24,500Incl. GST |
Vikram Shahvikram@example.com |
INV-2026-1043Raised 6 Nov |
0Nothing yet |
0Draft |
Meera Iyermeera@example.com |
INV-2026-1044Raised 9 Nov |
12All sent |
48,900Incl. GST |
Every option
Every value of every prop, one cell each.
primary
primary="Asha Rao"Asha Raoasha@example.com
primary=""-asha@example.com
primary="0"0asha@example.com
secondary
secondary="asha@example.com"Asha Raoasha@example.com
secondary=""Asha Rao
href
href="/invoices/1042"Asha Raoasha@example.com
no href (default)Asha Raoasha@example.com
mono
mono="false" (default)Asha Raoasha@example.com
mono="true"Asha Raoasha@example.com
numeric
numeric="false" (default)Asha Raoasha@example.com
numeric="true"Asha Raoasha@example.com
className
class: adds a class to the cell rootAsha Raoasha@example.com
Guidance
What to do, and what to avoid.
Use it when
- A table cell with a main value and a quieter detail line under it.
- A figure column that should right-align with tabular digits.
Reach for something else when
- A cell that is only one value. → Plain cell text
- An amount in rupees from paise. → formatINR, or app-money in Razor
Reference
Try every prop, read the full list, and check keyboard and screen reader behaviour.
6 props. The 5 most used come first.
Used on most screens 5 props
| Prop | Type | Default | Description |
|---|---|---|---|
| primarydefault - | string | - | The main value on the first line. Empty draws the placeholder -; 0 draws 0. Without the attribute, the element's content is the primary. |
| secondarydefault - | string | - | The quieter detail line under the primary. Omitted when empty. |
| hrefdefault - | string | - | Makes the primary a link to this address. |
| monodefault false | bool | false | Sets the primary line in monospace. |
| numericdefault false | bool | false | Right-aligns both lines with tabular digits. |
Less common 1 props
| Prop | Type | Default | Description |
|---|---|---|---|
| classdefault - | string | - | Extra class on the cell root, added to the component's own. |
Screen reader
2 notes- The link is a real anchor named by the primary text.
- Both lines are plain text and read in order.