Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
bemto-button
Advanced tools
Complex button foundation based on bemto-components & styled-components
This is a foundation for all the buttons I use in my markup for more than 4 years. Now in a form of a React component, using bemto-components and styled-components.
You can use it as a base for highly functional and stylable buttons which provides basic reset & layout which you could later easily style by extending with styled-components (or use your external styles). This component has all the powers of bemto-components beneath, so you can use modifiers, polymorphic tags and all the other stuff. See the docs of bemto-components for more features and this component's source code to how easily it is done.
Each example at documentation is an interactive playground like this one ↓
Note: bemto-button
uses styled-components as a peer dependency, as its bad to include more than one instance of styled-components in your app, so you need to have it installed as well.
In your console:
npm install --save bemto-button
Then in .js
-files of your components:
import BemtoButton from 'bemto-button';
Licensed under the MIT License, Copyright © 2017 Roman Komarov.
See LICENSE for more information.
FAQs
Complex button foundation based on bemto-components & styled-components
The npm package bemto-button receives a total of 2 weekly downloads. As such, bemto-button popularity was classified as not popular.
We found that bemto-button 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.