Displaying 1 to 19 from 19 results

classcat - Declarative string builder for DOM className properties

  •    Javascript

Classcat is a declarative string builder for DOM className properties. Each class can be conditionally added and removed depending on the falsiness of the value it is paired with. Here is a button you can toggle on and off. Go ahead and try it online.

class-lists - A simple javascript utility for conditionally joining class names together, inspired by classNames but with a twist

  •    Javascript

A simple javascript utility for conditionally joining class names together, inspired by classNames but with a twist. Alternatively, you can simply include index.js on your page with a standalone <script> tag and it will export a global classLists method (useful if you're doing Rails), or define the module if you are using RequireJS.

react-extras - Useful components and utilities for working with React

  •    Javascript

Note that this package targets modern browsers. It's up to you to transpile if you need to support older browsers.Automatically binds your React.Component subclass methods to the instance. See the autoBind.react() docs.




bem-cn - Friendly BEM-style class name generator, great for React.

  •    Javascript

Please do not use version 2.x or lower. New API and required codemods coming soon.

strclass - A ~200b library to apply CSS classes as strings from objects

  •    Javascript

strclass is an Universal Module, and can be used as a global, with AMD, CommonJS or ES Module. strclass has ~200bytes gzipped.

react-native-sass-classname - Babel plugin to make react web app more reusable as react-native apps

  •    Javascript

Babel plugin to make react web app more reusable as react-native apps and vice-versa. Indeed, react-native is a great alternative to frontend engineers feel comfortable working on mobile apps. Also, the effort invested by Nicolas Gallagher creating components to replace the native ones, it is very valuable. Despite the previous sentences show us the great advantages in this battle for productivity (having more people capable of doing the tasks), migration is not straight forward. Especially, due to the aspect of the same apps look different in mobile and web view. Besides, the react-native has a particular syntax to apply visual effects, that is the absence of className property widely used in web apps. So, rather than we adapt ourselves to this new reality, it is totally feasible adapting the new reality to the existing web environment, thus, making a migration seamless and painless.


quark - Quark.js is a microscopic atomic CSS polyfill in JS just 140 bytes

  •    HTML

This plugin is the smallest 'atomic' CSS framework, at only 140 bytes it's small enough to fit in a tweet. There are a number of CSS frameworks like Tailwind CSS, ACSS, BassCSS, Tachyons, Universal.CSS, and Bootstrap v4 that include pre-made classes for certain properties. These can apply directly to an element in HTML as classes instead of as styles.

bem-cn-lite - Lite version of the friendly BEM-style class name generator, which is great for React

  •    Javascript

It’s a wrapper function for bem-cn module. b is a class name generator which was bind to button.

react-body - ReactJS component that conditionally adds CSS class name(s) to document.body

  •    Javascript

🔥 Want to strengthen your core JavaScript skills and master ES6 and React? I would personally recommend this awesome ES6 and React courses by Wes Bos. ..where <CSS-CLASS-NAME> is the CSS class name(s) that must be appended to document.body when component is rendered and <CONDITION> is a true (defualt) or false flag indicating if document.body should actually be altered.

class-names - Conditionally join CSS class names together - Especially useful with React

  •    Javascript

Conditionally join CSS class names together. Accepts a combination of strings and objects. Only object keys with truthy values are included. Anything else is ignored.

bem-classnames - A simple utility to manage BEM class names on React

  •    Javascript

bem-classnames is a simple utility to manage BEM class names on React. Inspired by classnames.

obj-str - A tiny (117b) library for serializing Object values to Strings.

  •    Javascript

A tiny (117b) library for serializing Object values to Strings. PS: I made this because Preact 8.0 removed this built-in behavior and I wanted a quick, drop-in replacement.

react-stylish - :ribbon: Make your React component style-able by all

  •    Javascript

Make your React component style-able by all. See the blog post about "The React Styling Problem" and how this helps solve it.

extract-html-class - Extract all classes from html

  •    Javascript

Get an array of classes for the given string. Uses a regex so safe to run on non-html strings too. Returns an empty array if no matches are found.

cssta

  •    Javascript

Cssta is a styling system for React Native 📱 that lets you define components using CSS. It takes heavy inspiration from styled-components, but makes changes for readability 👀, to enable more features 🤙, and performance ⚡️.

es-css-modules - PostCSS plugin that combines CSS Modules and ES Imports

  •    Javascript

ES6 brought in import/export syntax, which now means that it is possible to statically determine which classes are actually used. ES CSS Modules takes advantage of this to produce CSS files without unused styles. An additional advantage of this is that physical JavaScript files are created. This means that you are not tied to a specific module bundler for your JS files: using ES CSS Modules means you can now use Rollup.