# react-exclude-props

> Extend a component with extra properties in a way that typescript can understand. These extra properties are not actually passed down, so don't trigger warnings, but can be used in `styled-components` to modify the element's style.

Latest version **1.0.3** (published 2018-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-exclude-props
pnpm add react-exclude-props
yarn add react-exclude-props
bun add react-exclude-props
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-04-02 |
| First published | 2018-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/react-exclude-props
- Repository: https://github.com/mopedjs/moped/tree/master/packages/react-exclude-props
- npm.io page: https://npm.io/package/react-exclude-props

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) ^8.0.33

## Recent versions

- 1.0.3 (latest) — 2018-04-02
- 1.0.1 — 2018-02-07
- 1.0.0 — 2018-02-06

## README

# react-exclude-props

Extend a component with extra properties in a way that typescript can understand. These extra properties are not actually passed down, so don't trigger warnings, but can be used in `styled-components` to modify the element's style.

## Usage

```tsx
import excludeProps from 'react-exclude-props';

const Button = excludeProps('button', p => ({active: p<boolean>()}));
const StyledButton = styled(Button)`
  color: ${props => props.active ? 'green' : 'black'};
`;

export default StyledButton;
```

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