open-consul/ui/packages/consul-ui/app/components/notice
John Cowen f461906883
ui: Fixup prettier for scss files and run (#10296)
* ui: Ensure prettier makes all our scss files pretty

* Run prettier on all our scss files
2021-05-27 13:23:54 +01:00
..
README.mdx ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +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: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +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>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)

---