Use for displaying label-value pairs like account details or miscellaneous info.
The q2-detail element has one or more properties that support text localization. Those properties are indicated by the localizable badge in the description.
alignDefines the alignment of the label and description when stacked, or when only the label or description is present.
descriptionDefines the text content of the description.
labelDefines the text content of the label.
sizeDefines the text size of the label and description.
If not specified, the detail will display as inline text.
stackedDetermines if the description should appear beneath the label.
The q2-detail element has one slot that can be used to insert custom content into the component.
An optional slot to display a custom label.
While the detail component works great out of the box for displaying plain text key-value pairs, you may want to use it to display things like currency, relative dates, and more. Doing this is quite easy by utilizing the slot within <q2-detail>.
<q2-detail
label="Current Balance"
alignment="left"
stacked
>
<q2-currency amount="12953.25"></q2-currency>
</q2-detail>
<q2-detail
label="Last Updated"
alignment="left"
stacked
>
<q2-relative-time
date="2024-12-10"
unit="day"
message-format="long"
></q2-relative-time>
</q2-detail>
Provide clean examples of how to compose multiple components together in order to achieve a specific visual outcome that is curated and maintained by Tecton.
How to build an Account List page in Tecton: a summary header and a searchable, client-filtered account list.
How to build an Account Details page in Tecton: a sortable, filterable transaction list with client-side search, column sorting, and pagination.
How to build an Account Settings page in Tecton: six independent settings sections covering nickname, notifications, statement delivery, card management, spending limits, and overdraft protection.
How to build a Bank Statement page in Tecton: a computed account summary and a q2-data-table of transactions for a statement period.
How to build a Funds Transfer form in Tecton: a single-column transfer with rich account options, a recurrence schedule, and client-side validation.
How to build a Message Center page in Tecton: a two-panel layout with a message list on the left and a selected message detail plus response form on the right.
The following CSS variables are available to override the default theme styles of the q2-detail component.
The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.