You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/components/notice
John Cowen 3f131dcf34
ui: Notifications re-organization/re-style (#11577)
3 years ago
..
README.mdx
index.hbs
index.scss
layout.scss
skin.scss ui: Notifications re-organization/re-style (#11577) 3 years ago

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)

---