0.1.2 • Published 6 years ago

@operational/blocks v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Operational UI Blocks

The @operational/blocks package builds on @operational/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:

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.

Documentation

Head to the blocks section of the documentation site to see what you can do with blocks.

0.1.2

6 years ago

0.1.0-40

6 years ago

0.1.0-39

6 years ago

0.1.0-38

6 years ago

0.1.0-37

6 years ago

0.1.0-36

6 years ago

0.1.0-35

6 years ago

0.1.0-34

6 years ago

0.1.0-33

6 years ago

0.1.0-32

6 years ago

0.1.0-31

6 years ago

0.1.0-30

6 years ago

0.1.0-29

6 years ago

0.1.0-28

6 years ago

0.1.0-27

6 years ago

0.1.0-26

6 years ago

0.1.0-25

6 years ago

0.1.0-24

6 years ago

0.1.0-23

6 years ago

0.1.0-22

6 years ago

0.1.0-21

6 years ago

0.1.0-20

6 years ago

0.1.0-19

6 years ago

0.1.0-18

6 years ago

0.1.0-17

6 years ago

0.1.0-16

6 years ago

0.1.0-15

6 years ago

0.1.0-14

6 years ago

0.1.0-13

6 years ago

0.1.0-12

6 years ago

0.1.0-11

6 years ago

0.1.0-10

6 years ago

0.1.0-9

6 years ago

0.1.0-8

6 years ago

0.1.0-7

6 years ago

0.1.0-6

6 years ago

0.1.0-5

6 years ago