{"id":14990675,"url":"https://github.com/kontentino/react-style-classes","last_synced_at":"2025-04-12T02:37:57.376Z","repository":{"id":35822037,"uuid":"218260417","full_name":"kontentino/react-style-classes","owner":"kontentino","description":"Javascript package for merge arguments of component style classnames or merge another arguments.","archived":false,"fork":false,"pushed_at":"2023-01-05T00:05:54.000Z","size":251,"stargazers_count":2,"open_issues_count":11,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T12:03:11.443Z","etag":null,"topics":["classes","classnames","es6","es6-javascript","javascript","react","reactjs","style","stylesheets","ui"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kontentino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-29T10:24:44.000Z","updated_at":"2022-09-22T12:09:48.000Z","dependencies_parsed_at":"2023-01-16T07:05:03.078Z","dependency_job_id":null,"html_url":"https://github.com/kontentino/react-style-classes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontentino%2Freact-style-classes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontentino%2Freact-style-classes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontentino%2Freact-style-classes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontentino%2Freact-style-classes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kontentino","download_url":"https://codeload.github.com/kontentino/react-style-classes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601447,"owners_count":20964862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classes","classnames","es6","es6-javascript","javascript","react","reactjs","style","stylesheets","ui"],"created_at":"2024-09-24T14:20:34.460Z","updated_at":"2025-04-12T02:37:57.352Z","avatar_url":"https://github.com/kontentino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Kontentino - Making social media a piece of cake](https://static.kontentino.com/img/logo/logo.svg)\n\n# react-style-classes by [Kontentino](https://www.kontentino.com/)\n\n[![](https://github.com/kontentino/react-style-classes/workflows/Test/badge.svg)](https://github.com/kontentino/react-style-classes/actions)\n[![npm](https://img.shields.io/npm/v/react-style-classes?style=plastic)](https://www.npmjs.com/package/react-style-classes)\n[![NPM](https://img.shields.io/npm/l/react-style-classes)](https://github.com/kontentino/react-style-classes/blob/master/LICENSE)\n\nJavascript package for merge arguments of component style classnames or merge another arguments.\n\n## Installation\n`$ npm install react-style-classes`\nor\n`$ yarn add react-style-classes`\n\n## Usage\n```javascript\nimport classes from 'react-style-classes';\n```\n\n### Example\n```javascript\n\u003cdiv className={ classes(\"className1\", \"className2\") } /\u003e\n```\nor use CSS modules\n```javascript\n\u003cdiv className={ classes(\"className1\", \"className2\", style.container) } /\u003e\n```\n\nor even use Array\n```javascript\n\u003cdiv className={ classes(\"className1\", \"className2\", ['class1', 'class2']) } /\u003e\n```\n\n#### Automatically filters boolean values\n```javascript\n\u003cdiv className={ classes(\"className1\", \"className2\", isModalVisible \u0026\u0026 style.modalWrapperVisible) } /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkontentino%2Freact-style-classes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkontentino%2Freact-style-classes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkontentino%2Freact-style-classes/lists"}