Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

List

Use a list placeholder where the page loads rows, with an optional avatar on each row.

A list of rows
One row per item, each with an optional avatar and two text lines.
Loading
Show code
<app-skeleton-list rows="4" avatar="true" />

Card

Use a card placeholder for a panel whose title and text arrive after the page.

A card placeholder
A title bar and a few text lines.
Loading
Show code
<app-skeleton-card lines="3" />

Detail page

Use a detail placeholder for a record page with a heading and label and value pairs.

A detail page placeholder
A heading, then label and value pairs.
Loading
Show code
<app-skeleton-detail rows="6" />

Every option

Every value of every prop, one cell each.

rows (list): how many rows

rows="1"
Loading
rows="5" (default)
Loading
rows="12"
Loading

avatar: round avatar per row

avatar="true"
Loading
avatar omitted (default)
Loading

lines (card): text lines under the title

lines="1"
Loading
lines="3" (default)
Loading
lines="12"
Loading

rows (detail): label and value pairs

rows="1"
Loading
rows="6" (default)
Loading
rows="12"
Loading

When to use

Use it when

  • A region loads after the page, such as a lazy fragment, and its shape is known.
  • The wait is long enough to see.

Reach for something else when

  • One button waits on a request. → AppButton with loading
  • The shape is not known. → AppSpinner

Reference

Try every prop, read the full list, and check keyboard and screen reader behaviour.

Loading
Razor, the same props
<app-skeleton-list />

4 props.

Less common 4 props

PropTypeDefaultDescription
rowsdefault 5 int 5 app-skeleton-list: how many rows to draw, 1 to 12. A value outside the range keeps the default.
avatardefault false bool false app-skeleton-list: draws a round avatar at the start of each row.
linesdefault 3 int 3 app-skeleton-card: the text lines under the title, 1 to 12. A value outside the range keeps the default.
rowsdefault 6 int 6 app-skeleton-detail: the label and value pairs, 1 to 12. A value outside the range keeps the default.