
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@talismn/connect-ui
Advanced tools
npm i --save @talismn/connect-ui
ModalExample
import { Modal } from '@talismn/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 '@talismn/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 '@talismn/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 '@talismn/connect-ui';
truncateMiddle('5FNfznCsgDKywfDXsYTf7YydpnMHUr8fjabK48rS2oFUugdc'); // 5FNf...ugdc
Run nx test talisman-connect-ui to execute the unit tests via Jest.
FAQs
## Setup:
The npm package @talismn/connect-ui receives a total of 179 weekly downloads. As such, @talismn/connect-ui popularity was classified as not popular.
We found that @talismn/connect-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.