3.2.0 • Published 1 year ago

@neogeek/common-react-hooks v3.2.0

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

@neogeek/common-react-hooks

Tests NPM Version

Install

$ npm install @neogeek/common-react-hooks

Documentation

useDisabledFocus(ref, disabled)

const ExampleFunction = () => {
  const [disabled, setDisabled] = useState(false);

  const ref = useRef<HTMLButtonElement>(null);

  useDisabledFocus(ref, disabled);

  return (
    <button ref={ref} onClick={() => setDisabled(true)}>
      Save
    </button>
  );
};

useFlash(trigger, [timeoutInMilliseconds = 1000])

const isFlashVisible = useFlash(false);
3.2.0

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago