# @artifak/block

> Basic React component primitive for handling spacing

Latest version **1.1.6** (published 2021-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @artifak/block
pnpm add @artifak/block
yarn add @artifak/block
bun add @artifak/block
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2021-02-17 |
| First published | 2020-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 393.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Julian Low |
| Maintainers | heyjules |
| Keywords | react, react-component, component, ui, flex, grid, block, layout |

## Links

- npm: https://www.npmjs.com/package/@artifak/block
- Repository: https://github.com/heyjul3s/artifak
- Homepage: https://github.com/heyjul3s/artifak#readme
- Issues: https://github.com/heyjul3s/artifak/issues
- npm.io page: https://npm.io/package/@artifak/block

## Dependencies (1)

- [@artifak/component-generator](https://npm.io/package/@artifak/component-generator.md) ^2.0.3

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2021-02-17
- 1.1.5 — 2021-01-12
- 1.1.4 — 2020-10-28
- 1.1.3 — 2020-10-19
- 1.1.2 — 2020-10-16
- 1.1.1 — 2020-10-16
- 1.1.0 — 2020-10-04
- 1.0.6 — 2020-10-02
- 1.0.5 — 2020-09-02
- 1.0.4 — 2020-09-01
- 1.0.3 — 2020-08-29
- 1.0.2 — 2020-08-24
- 1.0.1 — 2020-08-23

## README

# `@artifak/block` (Deprecated from v2.0.0)

Block is a basic block component that acts as a base to your UI components. You can also view the docs
at [Artifak Block](https://www.artifak.dev/?content=Block).

## Installation

### Yarn

```sh
yarn add @artifak/block
```

### NPM

```sh
npm install @artifak/block
```

## Usage

Below is an example of how you may use it.

```ts
import { createBlockComponents } from '@artifak';

const blockStyles = {
  Article: {
    margin: 0,
    padding: [15, 30]
    as: 'article',
  },
};

const { Article } = createBlockComponents<typeof blockStyles>(blockStyles);
```

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