workflow-layout-yoga

2.0.0 • Public • Published

Workflow Layout Yoga

This layout package lets you use the Yoga Flexbox implementation to define flows.

The package exposes a Yoga layout node which can be used as in place of any layout node.

Usage

import React from 'react';
import { render, Workspace, requireComponent } from 'workflow-react';

const { Browser } = requireComponent("workflow-apps-defaults");
const { Flex } = requireComponent("workflow-layout-yoga");

export const flow = render(
  <Workspace name={'workflow-yoga-example'}>
    <Flex name="flex" style={{
      justifyContent: "center",
      alignItems: "center",
   }}>
      <Browser
        style={{width: "80%", height: "80%"}}
        url={'https://github.com/havardh/workflow/tree/master/packages/workflow-cmd'}
      />
    </Flex>
  </Workspace>,
);

Package Sidebar

Install

npm i workflow-layout-yoga

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

11.3 kB

Total Files

6

Last publish

Collaborators

  • havardh