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.
class-flex
Advanced tools
Readme
A utility library for generating class names with variants and responsive styles for Tailwind CSS.
Install the package using npm:
npm install class-flex
Install the package using yarn:
yarn add class-flex
Here's a basic example of how to use class-flex
:
import React from 'react';
import clf from 'class-flex';
const button = clf("", variants: {
mode: {
contained: "bg-primary text-white",
outlined: "bg-transparent border border-primary text- primary",
text: "text-primary",
},
intent: {
primary: "bg-primary",
secondary: "bg-secondary",
tertiary: "bg-tertiary", }, },
defaultVariants: {
mode: "contained",
intent: "primary",
})
const App = () => {
const classes = button({mode: "contained", intent: "primary"})
return (
<button className={classes}>
Click Me
</button>
);
};
export default App;
Contributions are welcome! Feel free to open an issue or submit a pull request.
FAQs
A utility library for generating class names with variants and responsive styles for Tailwind CSS.
The npm package class-flex receives a total of 24 weekly downloads. As such, class-flex popularity was classified as not popular.
We found that class-flex 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
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.