Download the PHP package derweili/cva-php without Composer
On this page you can find all versions of the php package derweili/cva-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download derweili/cva-php
More information about derweili/cva-php
Files in derweili/cva-php
Download derweili/cva-php
More information about derweili/cva-php
Files in derweili/cva-php
Vendor derweili
Package cva-php
Short Description PHP clone of class-variance-authority (CVA)
License MIT
Homepage https://github.com/derweili/cva-php
Package cva-php
Short Description PHP clone of class-variance-authority (CVA)
License MIT
Homepage https://github.com/derweili/cva-php
Please rate this library. Is it a good library?
Informations about the package cva-php
cva-php
A PHP clone of the class-variance-authority (CVA) utility, inspired by the original npm package. This package provides utility functions for composing CSS class names based on variants, similar to the original JavaScript/TypeScript version.
Installation
Usage
1. Clsx::cx
— Class Name Combiner
Combine class names, arrays, and objects into a single string, ignoring falsy values (like null
, false
, 0
, empty string, etc.).
2. Cva::cva
— Class Variance Authority
Create a function that generates class names based on variants and options.
Running Tests
All versions of cva-php with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package derweili/cva-php contains the following files
Loading the files please wait ....