On this page
@addTagHelper *, Webority.Ui.RazorIn a table
Use the person cell in any row that names who a record is about, so each person looks the same everywhere.
A team table
you tags the signed-in person; href turns the name into a link.
| Person | Role |
|---|---|
| Lead | |
| Approver | |
| Viewer |
Sizes and tones
Use size sm in dense tables; tone tints the initials, and auto gives each name its own colour.
Avatar sizes and tints
size=md (default)
size=sm
tone=success
tone=danger
tone=auto
Every option
Every value of every prop, one cell each.
name: any text
name="Vikram Singh"secondary: any text
secondary="Finance"src: photo or initials
src="/samples/sections/avatar-arjun.svg"src not set (default): initialshref: any URL
href="#"size: both values
size="md" (default)size="sm"you: both values
you="false" (default)you="true"tone: all seven
tone="primary" (default)tone="neutral"tone="success"tone="warning"tone="danger"tone="info"tone="auto"Reference
Try every prop, read the full list, and check keyboard and screen reader behaviour.
7 props.
Less common 7 props
| Prop | Type | Default | Description |
|---|---|---|---|
| namedefault - | string | - | The person's name. Required; an empty name throws. |
| secondarydefault - | string | - | The line under the name, such as an email or a role. |
| srcdefault - | string | - | Photo URL. Without one the avatar shows initials. |
| hrefdefault - | string | - | Makes the name a link to this URL. |
| sizedefault md | sm | md | md | The avatar scale. Any other value throws. |
| youdefault false | bool | false | Shows a "You" tag beside the name, for the signed-in person. |
| tonedefault primary | primary | neutral | success | warning | danger | info | auto | primary | The avatar tint for initials. |