# component-css

> DOM element css helper

Latest version **0.0.8** (published 2016-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-css
pnpm add component-css
yarn add component-css
bun add component-css
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-04-01 |
| First published | 2014-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Maintainers | clintwood, dominicbarnes, hughsk, jonathanong, jongleberry, ockham, stephenmathieson, thehydroimpulse, timaschew, tootallnate, trevorgerhardt |

## Links

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

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) *
- [to-camel-case](https://npm.io/package/to-camel-case.md) 0.2.1
- [component-each](https://npm.io/package/component-each.md) ~0.2.2
- [within-document](https://npm.io/package/within-document.md) 0.0.1

## Recent versions

- 0.0.8 (latest) — 2016-04-01
- 0.0.6 — 2014-05-28
- 0.0.5 — 2014-04-22

## README

# css

  jQuery's [css()](http://api.jquery.com/css/) method.

## Installation

  Install with [component(1)](http://component.io):

    $ component install component/css

## API

### css(el, prop)

Get the computed value of the `prop` on `el`.

```js
css(p, 'color')
```

### css(el, prop, value)

Set the CSS `value` on the `prop` on `el`

```js
css(p, 'color', 'red')
```

### css(el, styles)

Set a `styles` object to `el`

```js
css(p, {
  color: 'red',
  background: 'blue'
})
```

## TODO

- Finish porting jQuery [css unit tests](https://github.com/jquery/jquery/blob/master/test/unit/css.js) over

## License

  MIT

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