
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@talisman-connect/ui
Advanced tools
npm i --save @talisman-connect/ui
ModalExample
import { Modal } from '@talisman-connect/ui';
<Modal
className={}
// The Modal title
title={}
// The Modal toggle
isOpen={false}
// The id where the Modal is appended. By default, it's appended to document.body.
appId=""
// Callback on Modal close
handleClose={() => { ... }}
// [Optional] Callback on Modal back button click. Used with a multi modal setup.
handleBack={() => { ... }}
>
<div>The modal body</div>
</Modal>
useLocalStorageUse localStorage values with ease.
import { useLocalStorage } from '@talisman-connect/ui';
const Dummy = () => {
const [value, setValue] = useLocalStorage('dummy-key');
return (
<button onClick={() => setValue('Dummy')}>{value || 'Click Me'}</button>
);
};
useOnClickOutsideDetects clicks outside of the ref element and calls the provided callback.
import { useOnClickOutside } from '@talisman-connect/ui';
const Popup = ({ handleClose }) => {
const ref = useRef<HTMLDivElement>(null);
useOnClickOutside(ref, handleClose);
return <div ref={ref}>/* content */</div>;
};
truncateMiddleTruncates the input string and replace with dots.
import { truncateMiddle } from '@talisman-connect/ui';
truncateMiddle('5FNfznCsgDKywfDXsYTf7YydpnMHUr8fjabK48rS2oFUugdc'); // 5FNf...ugdc
Run nx test talisman-connect-ui to execute the unit tests via Jest.
FAQs
## Setup:
The npm package @talisman-connect/ui receives a total of 0 weekly downloads. As such, @talisman-connect/ui popularity was classified as not popular.
We found that @talisman-connect/ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.

Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.