# @a2000/cover

> A2K Cover

Latest version **0.0.2** (published 2022-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @a2000/cover
pnpm add @a2000/cover
yarn add @a2000/cover
bun add @a2000/cover
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-07-03 |
| First published | 2022-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrico Karoulla |
| Maintainers | andrico1234 |

## Links

- npm: https://www.npmjs.com/package/@a2000/cover
- npm.io page: https://npm.io/package/@a2000/cover

## Recent versions

- 0.0.2 (latest) — 2022-07-03
- 0.0.1 — 2022-07-02

## README

# Cover

Renders a full height container with a central principal element, sandwiched between two optional elements

## Quick Start

1. Begin by installing with your favourite package manager:

`npm install @a2000/cover`

2. Use within your HTML templates as follows:

```html
<!DOCTYPE html>
<html>
  <head>
    <title>Quick Start</title>
    <meta charset="UTF-8" />
  </head>

  <body>
    <!-- Use web components in your HTML like regular built-in elements. -->
    <a2k-cover>
      <p slot="heading">Demo</p>
      <p slot="principal">Main</p>
      <p slot="footer">Copyright Ⓒ the badass</p>
    </a2k-cover>

    <!-- a2k web components use standard JavaScript modules. -->
    <script type="module">
      import "@a2000/progress/a2k-cover.js";
    </script>
  </body>
</html>
```

## API

| Slot      | Details                                            |
| --------- | -------------------------------------------------- |
| heading   | Element that renders at the top of the cover       |
| principal | Principal element that takes up the middle content |
| footer    | Element that renders at the bottom of the cover    |

## Notes

- This component is inspired by the cover component described int he [Every Layout](https://every-layout.dev/layouts/cover/) book

---
_Source: https://npm.io/package/@a2000/cover · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
