# silver-class

> Changes the class names according to the specified breakpoints.

Latest version **0.2.1** (published 2020-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install silver-class
pnpm add silver-class
yarn add silver-class
bun add silver-class
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2020-11-15 |
| First published | 2020-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | oktaykose |
| Maintainers | oktaykose |
| Keywords | class, className, breakpoint, breakpoints, class modifier |

## Links

- npm: https://www.npmjs.com/package/silver-class
- Repository: https://github.com/oktaykose/silver-class
- Homepage: https://github.com/oktaykose/silver-class#readme
- Issues: https://github.com/oktaykose/silver-class/issues
- npm.io page: https://npm.io/package/silver-class

## Recent versions

- 0.2.1 (latest) — 2020-11-15
- 0.1.1 — 2020-11-15
- 1.0.0 — 2020-11-15

## README

# silver-class

> Changes the class names according to the specified breakpoints.

[![NPM](https://img.shields.io/npm/v/silver-class.svg)](https://www.npmjs.com/package/silver-class) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

```txt
xs, extra-small: 0px  
sm, small: 600px 
md, medium: 960px 
lg, large: 1280px 
xl, extra-large: 1920px 
```

## Install

```bash
npm install --save silver-class
```

## Usage

```jsx
import React from 'react'
import { sCls } from 'silver-class'

export const Example = () => { 
    return (
      <div className={sCls({ xs: "text-red", sm: "text-yellow",})}>Hello !</div>
    )
}
```

## License

MIT © [oktaykose](https://github.com/oktaykose)

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