open-consul/ui/packages/consul-ui/app/components/notice
John Cowen a686404ccd
ui: Fix brand coloring for inline-code plus docs (#11578)
* ui: Fix brand coloring for inline-code plus docs

Also use --tones instead of --black/--white (#11601)

Co-authored-by: Evan Rowe <ev.rowe@gmail.com>
2021-11-23 18:32:11 +00:00
..
README.mdx ui: Rename icons for consistency and remove unused icons (#10311) 2021-06-22 18:56:17 +01:00
index.hbs ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
index.scss ui: Fixup prettier for scss files and run (#10296) 2021-05-27 13:23:54 +01:00
layout.scss ui: Upgrade the rest of the UI to use the new Notice component (#9035) 2020-10-26 16:51:53 +00:00
skin.scss ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00

README.mdx

# Notice

Presentational component for informational/warning/error banners/notices.


```hbs preview-template
<Notice
  @type={{this.type}}
as |notice|>
  <notice.Header>
    <h3>Header</h3>
  </notice.Header>
  <notice.Body>
    <p>
      Body
    </p>
  </notice.Body>
  <notice.Footer>
    <p>
      <a href="">Footer link</a>
    </p>
  </notice.Footer>
</Notice>

<figure>
  <figcaption>Provide a widget to change the <code>@type</code></figcaption>

  <select
    onchange={{action (mut this.type) value="target.value"}}
  >
    <option>info</option>
    <option>success</option>
    <option>warning</option>
    <option>error</option>
  </select>

</figure>
```

## Arguments

| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `type` | `String` | `info` | Type of notice [info\|warning\|error] |

## See

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

---