0.13.1 • Published 4 months ago

@use-gpu/layout v0.13.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@use-gpu/layout

npm install --save @use-gpu/layout
yarn add @use-gpu/layout

Docs: https://usegpu.live/docs/reference-components-@use-gpu-layout

Use.GPU - 2D Layout

Absolute, Block, Flex, Inline, Overflow.

Example

How to center text inside a centered box. Yes, horizontally and vertically. Wow.

return (
  <FlatCamera>

    <Pass>
      <UI>

        <Flex width="100%" height="100%" align="center">
          <Flex width={500} height={150} fill="#3090ff" align="center">

            <Inline>
              <Text weight="black" size={48} color={[1, 1, 1, 1]}>-~ Use.GPU ~-</Text>
            </Inline>

          </Flex>
        </Flex>

      </UI>
    </Pass>

  </FlatCamera>
);

Colofon

Made by Steven Wittens. Part of @use-gpu.

0.13.0

5 months ago

0.13.1

4 months ago

0.12.0

10 months ago

0.11.3

11 months ago

0.11.1

12 months ago

0.11.0

1 year ago

0.9.3

2 years ago

0.10.1

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.8.3

2 years ago

0.8.0

2 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago