0.0.5 • Published 1 year ago

@figmazing/resizable v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@figmazing/resizable

install

yarn add @figmazing/resizable

usage

Both ui and main are required to use this package.

// ui
import { Resizable } from "@figmazing/resizable";

// create a resizable component

const App = () => {
  return (
    <Resizable
      style={{
        position: "fixed",
        bottom: "2px",
        right: "2px",
        width: "16px",
        height: "16px",
      }}
    />
  );
};
// main
import "@figmazing/resizable/main";

// If you want restore last size
import { restoreWindowSize } from "@figmazing/resizable/main";

function app() {
  // restore last size
  restoreWindowSize();
}
0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.1

1 year ago

0.0.2

1 year ago