DescriptionList
DescriptionList shows metadata as term and value pairs.
- Wrap each term and its value in a DescriptionListItem.
- Format values and missing-value text yourself.
- Put actions inside DescriptionListDescription.
- Rows stack in narrow containers and form two columns when the list has room.
- Name
- Priya Shah
- priya@example.com
Installation
Run npx nxds-cli@latest init first if nxds isn’t set up in your app yet. See Install.
Usage
Composition
Examples
File metadata
List file details, with a time element for the modified date.
- Filename
- Research findings.pdf
- Size
- 2.4 MB
- Modified
Configuration
Mix plain text and a Badge to show settings and their status.
- Region
- Mumbai
- Backups
- Enabled
- Retention override
- Not configured
This example also needs: Badge.
Props
DescriptionList
DescriptionList adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionListDescription
DescriptionListDescription adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionListItem
DescriptionListItem adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionListTerm
DescriptionListTerm adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionList shows metadata as term and value pairs.
- Wrap each term and its value in a DescriptionListItem.
- Format values and missing-value text yourself.
- Put actions inside DescriptionListDescription.
- Rows stack in narrow containers and form two columns when the list has room.
Installation
Copy and paste the following code into your project.
components/description-list/DescriptionList.vue components/description-list/DescriptionListDescription.vue components/description-list/DescriptionListItem.vue components/description-list/DescriptionListTerm.vue components/description-list/index.ts Keep each file at the path shown above it.
Paths are relative to
packages/vue/src/. Keep the same folders under your@/root, and the imports between files work without edits.
Usage
Examples
File metadata
List file details, with a time element for the modified date.
Configuration
Mix plain text and a Badge to show settings and their status.
This example also needs: Badge.
Props
DescriptionList
DescriptionList adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionListDescription
DescriptionListDescription adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionListItem
DescriptionListItem adds no props of its own; it accepts the props of the element or primitive it wraps.
DescriptionListTerm
DescriptionListTerm adds no props of its own; it accepts the props of the element or primitive it wraps.