Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

In a settings tab

Several sections stacked, each row read first and edited one at a time.

Two sections

Invoicing

How invoices are numbered and sent

Invoice numbering
INV-0042
Currency
INR

Reminders

Overdue reminder
7 days after due
Sender name
Show code
<app-setting-section title="Invoicing" description="How invoices are numbered and sent">
    <app-setting-section-action><app-button variant="Outline">Add</app-button></app-setting-section-action>
    <app-setting-row label="Invoice numbering" value="INV-0042" />
    <app-setting-row label="Currency" value="INR" />
</app-setting-section>
<app-setting-section title="Reminders">
    <app-setting-row label="Overdue reminder" value="7 days after due" />
    <app-setting-row label="Sender name" mode="Edit"><app-input label="Sender name" name="sender" value="Nimbus Logistics" /></app-setting-row>
</app-setting-section>

Guidance

What to do, and what to avoid.

Use it when

  • A page groups related settings under one title, such as invoicing or members.
  • Each group holds AppSettingRow rows.

Reach for something else when

  • The rows are records to sort or filter. → AppDataTable
  • The page is one form that a person fills in and submits. → AppFormSection

Name the group and say what it covers

Do

Invoicing

How invoices are numbered and sent

Currency
INR

The title and the help line let a person find the setting they want.

Avoid

How invoices are numbered

A group with no title gives a person no way to find it.

Reference

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

Invoicing

How invoices are numbered and sent

Invoice numbering

The number of the next invoice

INV-0042
Currency
INR
React, generated from the controls
<AppSettingSection title="Invoicing" description="How invoices are numbered and sent">
  <AppSettingRow label="Invoice numbering" description="The number of the next invoice" value="INV-0042" />
  <AppSettingRow label="Currency" value="INR" />
</AppSettingSection>
Razor, the same props
<app-setting-section title="Invoicing" description="How invoices are numbered and sent">
    <app-setting-row label="Invoice numbering" description="The number of the next invoice" value="INV-0042" />
    <app-setting-row label="Currency" value="INR" />
</app-setting-section>

3 props. The 3 most used come first.

Used on most screens 3 props

PropTypeDefaultDescription
titledefault - string - The section's title, above its rows.
descriptiondefault - string - One line of help under the title.
actiondefault - app-setting-section-action - A control at the right of the title, such as a button that adds a setting.

Screen reader

2 notes
  • The title is a heading above the rows, so a screen reader finds each group in the heading list.
  • The action sits in the header after the title, reached by the keyboard in order.

Do and avoid

1 pairs

Name the group and say what it covers

Do

Invoicing

How invoices are numbered and sent

Currency
INR

The title and the help line let a person find the setting they want.

Avoid

How invoices are numbered

A group with no title gives a person no way to find it.