# @watheia/app.ui.layout.align

> A set of CSS components to align elements.

Latest version **0.0.4** (published 2021-05-19) · EPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install @watheia/app.ui.layout.align
pnpm add @watheia/app.ui.layout.align
yarn add @watheia/app.ui.layout.align
bun add @watheia/app.ui.layout.align
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-05-19 |
| First published | 2021-05-19 |
| Weekly downloads | 0 |
| License | EPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aaron R Miller |
| Maintainers | waweb |
| Keywords | watheia, app, micro, micro-component, web-component, micro-frontend, atomic-design, material-design, stencil |

## Links

- npm: https://www.npmjs.com/package/@watheia/app.ui.layout.align
- Repository: https://gitlab.com/watheia/nx-micro
- Homepage: https://watheia.app/home
- Issues: https://gitlab.com/watheia/nx-micro/issues
- npm.io page: https://npm.io/package/@watheia/app.ui.layout.align

## Dependencies (2)

- [core-js](https://npm.io/package/core-js.md) ^3.0.0
- [@watheia/app.ui.layout.breakpoints](https://npm.io/package/@watheia/app.ui.layout.breakpoints.md) 0.0.2

## Recent versions

- 0.0.4 (latest) — 2021-05-19
- 0.0.3 — 2021-05-19
- 0.0.2 — 2021-05-19
- 0.0.1 — 2021-05-19

## README

## Align

A set of CSS components to align elements.

### text

Same as css property text-align.

```tsx
import { text } from '@watheia/app.ui.layout.align';
function A() {
	return <div className={text.center}>a</div>;
}
```

### Breakpoints

Align elements according to html breakpoints.

```tsx
import { text } from '@watheia/app.ui.layout.align';
function B() {
	return <div className={classNames(text.left, text.md.center text.l.left)}>
			b
	</div>
}
```

### Margin center

Same as `margin-left: auto; margin-right: auto`.

```tsx
import { marginCenter } from '@watheia/app.ui.layout.align';

function C() {
	return <div className={classNames(marginCenter)}>this is centered</div>;
}
```

## Breakpoints:

-   (default) `(all)`
-   xs `360px`
-   sm `480px`
-   md `768px`
-   l `920px`
-   lg `1080px`
-   xl `1440px`

---
_Source: https://npm.io/package/@watheia/app.ui.layout.align · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
