# babel-plugin-react-autoprefix

> Adds vendor prefixes to inline styles in React elements

Latest version **1.0.1** (published 2016-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-react-autoprefix
pnpm add babel-plugin-react-autoprefix
yarn add babel-plugin-react-autoprefix
bun add babel-plugin-react-autoprefix
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-09-30 |
| First published | 2015-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dariocravero |
| Keywords | babel-plugin, react, auto, prefix, vendor, style, inline, styles |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-react-autoprefix
- Repository: https://github.com/uxtemple/babel-plugin-react-prefix-styles
- Homepage: https://github.com/uxtemple/babel-plugin-react-prefix-styles#readme
- Issues: https://github.com/uxtemple/babel-plugin-react-prefix-styles/issues
- npm.io page: https://npm.io/package/babel-plugin-react-autoprefix

## Dependencies (1)

- [autoprefix](https://npm.io/package/autoprefix.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-09-30
- 1.0.0 — 2016-09-30
- 1.0.0-beta.1 — 2016-09-28
- 0.2.6 — 2015-08-03
- 0.2.5 — 2015-08-03
- 0.2.4 — 2015-08-03
- 0.2.3 — 2015-08-03
- 0.2.2 — 2015-08-02
- 0.2.1 — 2015-08-02
- 0.2.0 — 2015-07-31
- 0.1.2 — 2015-07-31
- 0.1.1 — 2015-07-30
- 0.1.0 — 2015-07-30

## README

# babel-plugin-react-autoprefix

Adds vendor prefixes to inline styles in React elements through
[autoprefix](https://github.com/uxtemple/autoprefix).

[![Build Status](https://travis-ci.org/UXtemple/babel-plugin-react-autoprefix.svg)](https://travis-ci.org/UXtemple/babel-plugin-react-autoprefix)

## Installation

```sh
$ npm install babel-plugin-react-autoprefix
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```js
{
  "plugins": ["react-autoprefix"]
}
```

### Via CLI

```sh
$ babel --plugins react-autoprefix script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["react-autoprefix"]
});
```

## Changing the matching pattern

The plugin will match `style` props by default. If you want to match other props, like
`styleSomething`, you can use the plugin's `matcher` option, e.g. in `.babelrc`:

```js
{
  "plugins": ["react-autoprefix", { matcher: /^style.*$/ }]
}
```

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