
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-shapeshifter
Advanced tools
React component that composes various commonly used button shapes from three lines
A React component that is able to render various commonly used button shapes with only three lines, morphing smootly between shapes using CSS transitions.
const Shapeshifter = require('react-shapeshifter')
const App = () => (
<Shapeshifter shape="menu" />
)
The component supports the following props:
shape: defines the shape that the button will show. Currently supported
shapes are as follows:
menu - a standard "hamburger"-style menu icon
close - a "close" icon showing an X
left - left-pointing arrow
right - right-pointing arrow
up - up-pointing arrow
down - down-pointing arrow
color: specifies the color of the component. You can use anything that
is accepted in CSS for the background-color property.
thickness: the thickness of each line in the component.
width: the length of each line in the component when showing the
"hamburger" icon. It should be set to nine times the thickness if you
want nice square-shaped buttons.
padding: additional padding around the button, in pixels. The default
settings produce 48x48 px icons, suitable for touch targets in mobile
apps.
style: allows you to specify additional CSS properties that will be
merged into the root tag of the component.
onClick: callback function to call when the user clicks on the
component.
FAQs
React component that composes various commonly used button shapes from three lines
The npm package react-shapeshifter receives a total of 63 weekly downloads. As such, react-shapeshifter popularity was classified as not popular.
We found that react-shapeshifter demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.