wongjiahau/ttap-web

View on GitHub
src/ts/react/panels/stackPanelProofOfConcept.tsx

Summary

Maintainability
B
5 hrs
Test Coverage
import * as React from "react";
import { StackPanel } from "./stackPanel";
export const StackPanelProofOfConcept = () => {
  return (
    <div>
      <StackPanel
        style={{
          margin: "5px",
        }}
        orientation="horizontal"
      >
        <button>hello</button>
        <button>bye</button>
      </StackPanel>
      <StackPanel orientation="vertical">
        <p>vertical orientation</p>
        <button>hello</button>
        <button>bye</button>
      </StackPanel>
      <StackPanel orientation="horizontal" horizontalAlignment="right">
        <p>right aligned</p>
        <button>hello</button>
        <button>bye</button>
      </StackPanel>
      <StackPanel orientation="horizontal" horizontalAlignment="center">
        <p>center aligned</p>
        <button>hello</button>
        <button>bye</button>
      </StackPanel>
      <StackPanel orientation="horizontal" horizontalAlignment="left">
        <p>Left aligned</p>
        <button>hello</button>
        <button>bye</button>
      </StackPanel>
    </div>
  );
};