@lunit/use-opt-control
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@lunit/use-opt-control

<InsightViewer>에서 사용되는 control={}, flip={}, invert={} 상태를 관리하는데 사용된다.

간단하게 사용하기 위해서 만들 Util이고, 필요한 경우 아래와 같이 사용해도 된다.

import { Control } from '@lunit/use-opt-control';

function Component() {
  const [control, setControl] = useState<Control>('pen');
  const [flip, setFlip] = useState<boolean>(false);
  const [invert, setInvert] = useState<boolean>(false);

  return <div>...</div>;
}

http://frontend-components-handbook.netlify.com/#/use-opt-control

Install

npm install @lunit/use-opt-control

Readme

Keywords

none

Package Sidebar

Install

npm i @lunit/use-opt-control

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

8.35 kB

Total Files

7

Last publish

Collaborators

  • takhyunkim
  • deminoth
  • jyseo