Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A flexible and customizable React component for rendering e-cards with Tailwind CSS.
Version: 2.2.1
Author: Nouman Azam
npm install flex-card
import { DefineCard } from "flex-card";
const cardData = [
{
type: "image",
source: "https://example.com/image.jpg",
text: "Image Caption",
},
{
type: "title",
text: "Card Title",
},
{
type: "text",
text: "This is some sample text content.",
},
{
type: "button",
text: "Click Me",
url: "https://example.com",
},
];
const App = () => {
return (
<div>
<DefineCard content={cardData} />
</div>
);
};
You can customize the appearance of the cards by passing in additional CSS classes through the customClassNames
prop:
<DefineCard
content={cardData}
customClassNames={{
imageWrapper: "my-custom-image-wrapper",
image: "my-custom-image",
title: "my-custom-title",
text: "my-custom-text",
btn: "my-custom-button",
}}
/>
The flex-card
package has the following peer dependencies:
embla-carousel-react
lucide-react
react
react-dom
react-markdown
@headlessui/react
Make sure to install these dependencies in your project.
This project is licensed under the MIT License.
FAQs
A React component for rendering e-cards with Tailwind CSS.
We found that flex-card 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.