# classcat **Repository Path**: mirrors_jorgebucaran/classcat ## Basic Information - **Project Name**: classcat - **Description**: Build a class attribute string quickly - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Classcat > Build a [`class`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class) attribute string quickly. - Framework agnostic, reusable, plain vanilla JavaScript. - Up to [2.5x faster](#benchmarks) than alternatives. - [217 B](http://bundlephobia.com/result?p=classcat) (minified+gzipped). 👌 This module makes it easy to build a space-delimited `class` attribute string from an object or array of CSS class names. Just pair each class with a boolean value to add or remove them conditionally. ```js import cc from "classcat" export const ToggleButton = ({ isOn, toggle }) => (