# @operational/blocks

> Opinionated composed ui components

Latest version **0.1.2** (published 2018-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @operational/blocks
pnpm add @operational/blocks
yarn add @operational/blocks
bun add @operational/blocks
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-05-25 |
| First published | 2017-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Peter Szerzo |
| Maintainers | contiamo |

## Links

- npm: https://www.npmjs.com/package/@operational/blocks
- Repository: https://github.com/Contiamo/operational-ui
- Homepage: https://github.com/Contiamo/operational-ui#readme
- Issues: https://github.com/Contiamo/operational-ui/issues
- npm.io page: https://npm.io/package/@operational/blocks

## Dependencies (9)

- [react](https://npm.io/package/react.md) ^16.2.0
- [glamor](https://npm.io/package/glamor.md) ^2.20.40
- [moment](https://npm.io/package/moment.md) ^2.19.0
- [glamorous](https://npm.io/package/glamorous.md) ^4.6.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [react-color](https://npm.io/package/react-color.md) ^2.13.8
- [@operational/theme](https://npm.io/package/@operational/theme.md) ^0.1.2
- [@operational/utils](https://npm.io/package/@operational/utils.md) ^0.1.2
- [@operational/components](https://npm.io/package/@operational/components.md) ^0.1.2

## Recent versions

- 0.1.2 (latest) — 2018-05-25
- 0.1.0-next.723923e9 (next) — 2018-05-09
- 0.1.0-next.10a791f2 (canary) — 2018-04-26
- 0.1.0-40 — 2018-05-25
- 0.1.0-39 — 2018-05-25
- 0.1.0-38 — 2018-05-11
- 0.1.0-37 — 2018-05-04
- 0.1.0-36 — 2018-05-02
- 0.1.0-next.392387e3 — 2018-04-26
- 0.1.0-35 — 2018-04-26
- 0.1.0-34 — 2018-04-25
- 0.1.0-33 — 2018-04-25
- 0.1.0-32 — 2018-04-25
- 0.1.0-31 — 2018-04-18
- 0.1.0-30 — 2018-04-17
- … 25 more at https://npm.io/package/@operational/blocks/versions

## README

# Operational UI Blocks

<!-- separator -->

The `@operational/blocks` package builds on [@operational/components](https://github.com/Contiamo/operational-ui/tree/master/packages/components), delivering larger, opinionated pieces of UI that handle a fair bit of their own state or side effects.

## Getting Started

Install the package via npm or yarn:

`npm install @operational/blocks @operational/components`

It is likely you will be using blocks together with components, so we recommend installing them together.

Create your first `Filter` block-based application like so:

```js
import React from "react"
import { Filter } from "@operational/blocks"
import { Input, ThemeProvider, operationalTheme } from "@operational/components"

const App = () => {
  <ThemeProvider theme={operationalTheme}>
    <Filter>
      <Input id="field-1" value="Value 1" />
      <Input id="field-2" value="Value 2" />
      <DatePicker id="field-3" start="01-01-2018" />
    </Filter>
  </ThemeProvider>
}
```

This component interacts smoothly with data input components from `@operational/components` to render a filter summary, and add the fields themselves into a modal. See more at the [filter documentation page](http://ui.contiamo.com/blocks/filters).

<!-- separator -->

## Documentation

Head to the blocks section of the [documentation site](https://ui.contiamo.com/blocks) to see what you can do with blocks.

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