Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@infinium/mercury
Advanced tools
Readme
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.