open-consul/ui/packages/consul-ui/app/components/definition-table
John Cowen 8d275ac186
ui: CopyableCode component (#13686)
* ui: CopyableCode component plus switch into existing implementations
2022-07-07 17:42:47 +01:00
..
README.mdx ui: CopyableCode component (#13686) 2022-07-07 17:42:47 +01:00
debug.scss ui: Fixup definition-table + copy-button margin (#10512) 2021-07-06 16:57:20 +01:00
index.scss
layout.scss ui: CopyableCode component (#13686) 2022-07-07 17:42:47 +01:00
skin.scss

README.mdx

---
class: css
---
# definition-table

Simple CSS component to render a `dl` similar to a table with column headers.

```hbs preview-template
<div class="definition-table">
  <dl>
    <dt>Title 1</dt>
    <dd>Value</dd>
    <dt>Title 2</dt>
    <dd>
      <CopyableCode
        @name="Title 2"
        @value="Value"
      />
    </dd>
  </dl>
</div>
```


```css
.definition-table {
  @extend %definition-table;
}
```