JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q36162F
  • License MIT

yoga-layout for workflow

Package Exports

  • workflow-layout-yoga

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (workflow-layout-yoga) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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>,
);