# @vtex/css-handles

> > Module for handling CSS classes

Latest version **1.1.3** (published 2019-06-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @vtex/css-handles
pnpm add @vtex/css-handles
yarn add @vtex/css-handles
bun add @vtex/css-handles
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2019-06-06 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | afonsopraca, alcar, alinevillaca, amoreira, andreldsa, anitavincent, arthurepc, arturpimentel, athoscouto, augustob, breno, brunohq, brunojdo, caio.oliveira, cmdalbem, diegoximenes, ericreis, felippenardi, firstdoit, guigs, guilhermebruzzi, gustavorosolem, iago, igorframos, jeymisson, jgfidelis, kaisermann, kevinchevallier, lbebber, lucasecdb, lurian, marcoskwkm, marcosvcp, nandoacoelho, ntmedina, rogerlucena, salesfelipe, samuraiexx, thiagomurakami, tlgimenes, vcalasans, victorcolombo, victorges, victorhmp, vtexlab |

## Links

- npm: https://www.npmjs.com/package/@vtex/css-handles
- Repository: https://github.com/vtex/css-handles
- Homepage: https://github.com/vtex/css-handles#readme
- Issues: https://github.com/vtex/css-handles/issues
- npm.io page: https://npm.io/package/@vtex/css-handles

## Recent versions

- 1.1.3 (latest) — 2019-06-06
- 1.1.2 — 2019-06-06
- 1.1.1 — 2019-06-06
- 1.1.0 — 2019-04-10
- 1.0.2 — 2019-04-10
- 1.0.1 — 2019-04-10
- 1.0.0 — 2019-04-10

## README

# @vtex/css-handles

> Module for handling CSS classes

### Setup

```sh
yarn add @vtex/css-handles
```

### Usage

```jsx
import React from 'react'
import { generateBlockClass } from '@vtex/css-handles'
import styles from './styles.css'

const FooComponent = ({ blockClass }) => {
  const classes = generateBlockClass(styles.container, blockClass)

  return (
    <div className={classes}>
      Hello world!
    </div>
  )
}

export default FooComponent
```

It will render:

```html
<div class="vtex-foo-1-x-container vtex-foo-1-x-container--bar">
  Hello world!
</div>
```

### Development

After installing dependencies, with `yarn`, run:

```sh
yarn run build
```

### Publishing

After installing dependencies, with `yarn`, run:

```sh
yarn run publish
```

---
_Source: https://npm.io/package/@vtex/css-handles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
