consul/ui-v2/app/components/consul-metadata-list
John Cowen 7a7311d736
ui: Add some missed spaces in component README files (#8335)
2020-07-20 17:43:10 +01:00
..
README.mdx ui: Add some missed spaces in component README files (#8335) 2020-07-20 17:43:10 +01:00
index.hbs UI Release Merge (1.8-beta-2: ui-staging merge) (#7919) 2020-05-19 17:18:04 +01:00
index.js ui: Add `<ConsulMetadataList />` and use it in 2 places (#7568) 2020-05-12 17:14:21 +00:00

README.mdx

## ConsulMetadataList

`<ConsulMetadataList @items={{meta}} />`

A presentational component for presenting Consul Metadata

### Arguments

| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `array` |  | An array of entries or `[key, value]` pairs as returned by `Object.entries()` |

### Example

The following example shows how to construct the required structure from the
Consul API using a `object-entries` helper.

```handlebars
  <ConsulMetadataList @items={{object-entries item.Meta}} />
```

### See

- [Component Source Code](./index.js)
- [Template Source Code](./index.hbs)

---