Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

Two 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
Show code
<app-cell primary="Asha Rao" secondary="asha@example.com"></app-cell>
Empty primary
-
0items
Show code
<app-cell></app-cell>
<app-cell primary="0" secondary="items"></app-cell>

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
Show code
<app-cell primary="INV-2026-1042" secondary="Raised 4 Nov" mono="true"></app-cell>
Right-aligned figures
32 pending
1,24,500Incl. GST
Show code
<app-cell primary="3" secondary="2 pending" numeric="true"></app-cell>
<app-cell primary="1,24,500" secondary="Incl. GST" numeric="true"></app-cell>

In a table

Each column returns an AppCell, and an amount column aligns end so its header sits over the figures.

Invoices table
NameReferenceItemsAmount
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
Show code
<td><app-cell primary="Asha Rao" secondary="asha@example.com"></app-cell></td>
<td><app-cell primary="INV-2026-1042" secondary="Raised 4 Nov" mono="true"></app-cell></td>
<td><app-cell primary="3" secondary="2 pending"></app-cell></td>
<td><app-cell primary="1,24,500" secondary="Incl. GST" numeric="true"></app-cell></td>

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 root
Asha 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.

Asha Raoasha@example.com
React, generated from the controls
<AppCell primary="Asha Rao" secondary="asha@example.com" />
Razor, the same props
<app-cell primary="Asha Rao" secondary="asha@example.com"></app-cell>

6 props. The 5 most used come first.

Used on most screens 5 props

PropTypeDefaultDescription
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

PropTypeDefaultDescription
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.