consul/ui/packages/consul-ui/app/components/collapsible-notices
Kenia daec73e76c
ui: Topology - Fix up Default Allow and Permissive Intentions notices (#11216)
* ui: Default allow notices test (#11240)
2021-10-12 09:27:06 -04:00
..
README.mdx ui: Create and use collapsible notices component (#10270) 2021-05-25 11:02:38 -04:00
index.hbs ui: Topology - Fix up Default Allow and Permissive Intentions notices (#11216) 2021-10-12 09:27:06 -04:00
index.js ui: Create and use collapsible notices component (#10270) 2021-05-25 11:02:38 -04:00
index.scss ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00

README.mdx

# CollapsibleNotices

Used as a wrapper to collapse the details of `<Notices/>`.

```hbs preview-template
<CollapsibleNotices>
  <Notice
    @type="error"
    role="alert"
  as |notice|>
    <notice.Header>
      <h3>Header</h3>
    </notice.Header>
    <notice.Body>
      <p>
        Body
      </p>
    </notice.Body>
  </Notice>
  <Notice
    @type="info"
  as |notice|>
    <notice.Header>
      <h3>Header</h3>
    </notice.Header>
    <notice.Body>
      <p>
        Body
      </p>
    </notice.Body>
    <notice.Footer>
      <p>
        Footer
      </p>
    </notice.Footer>
  </Notice>
  <Notice
    @type="warning"
  as |notice|>
    <notice.Header>
      <h3>Header</h3>
    </notice.Header>
    <notice.Body>
      <p>
        Body
      </p>
    </notice.Body>
    <notice.Footer>
      <p>
        Footer
      </p>
    </notice.Footer>
  </Notice>
</CollapsibleNotices>

```

## Arguments

No arguments required. Wrap this component around the needed notices.

## See

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

---