Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@infinium/mercury
Advanced tools
Mercury is a set of general, fluid React components. It's like mini UI kit.
To learn how to use Mercury, read the wiki.
yarn add @infinium/mercury
or
npm install @infinium/mercury
First, import the global stylesheet:
import '@infinium/mercury/dist/style.css';
Now, just import any component as you need it.
import { Button } from '@infinium/mercury';
const App = () => (
<Button>Click me</Button>
);
esc
to close a Modal.styles
prop, you'll want to look elsewhere. Mercury is opinionated by nature, and doesn't offer much in the way of custom styles; programmatically, at least. That is, you can't pass styles to most components directly (except in the few components that accept the mods
prop). You can, however, inspect the class that the component uses (all components have at least 1 accessible class) and modify it manually yourself. If you choose to do so, be careful that you don't break any behavior!All of the components are written in TypeScript. Moreover, each of the component prop types are exported individually. If you want to extract the props to an object, you can do so like:
import type { TButton } from '@infinium/mercury';
const buttonProps: TButton = {
// ...
}
If you're not using TypeScript, you can read the wiki to learn about each component.
FAQs
A fliud set of React components.
We found that @infinium/mercury 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.