Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A flexible and customizable React component for rendering e-cards with Tailwind CSS.
Version: 2.1.6
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.
The npm package flex-card receives a total of 13 weekly downloads. As such, flex-card popularity was classified as not popular.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.