# @temporg/ui-prop-types

> A UI component library made by Rock Content

Latest version **99.10.0** (published 2020-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @temporg/ui-prop-types
pnpm add @temporg/ui-prop-types
yarn add @temporg/ui-prop-types
bun add @temporg/ui-prop-types
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 99.10.0 |
| Published | 2020-06-02 |
| First published | 2020-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 59.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rock Content Product and Engineering Team |
| Maintainers | matheusrv |

## Links

- npm: https://www.npmjs.com/package/@temporg/ui-prop-types
- Repository: https://github.com/rockcontent/rock-design-system
- Homepage: https://design.rockcontent.com/
- Issues: https://github.com/rockcontent/rock-design-system/issues
- npm.io page: https://npm.io/package/@temporg/ui-prop-types

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) >= 15.7.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.5.0

## Recent versions

- 99.10.0 (latest) — 2020-06-02
- 99.9.0 — 2020-04-27
- 99.8.0 — 2020-04-24
- 99.7.0 — 2020-04-23
- 99.6.0 — 2020-04-23
- 99.5.0 — 2020-04-22
- 99.4.0 — 2020-04-22
- 99.3.0 — 2020-04-20
- 99.2.0 — 2020-04-20
- 99.1.0 — 2020-04-17
- 0.8.12 — 2020-04-16
- 0.8.11 — 2020-04-13
- 0.8.9 — 2020-04-06
- 0.8.0 — 2020-03-31
- 0.0.1 — 2020-01-30

## README

---
category: packages
---

## ui-prop-types

[![npm][npm]][npm-url]&nbsp;
[![build-status][build-status]][build-status-url]&nbsp;
[![MIT License][license-badge]][LICENSE]&nbsp;
[![Code of Conduct][coc-badge]][coc]

A collection of custom prop type validators.

### Functions
The `ui-prop-types` package contains the following:
- [children](#children)
- [childrenOrValue](#childrenOrValue)
- [controllable](#controllable)
- [cursor](#cursor)
- [element](#element)
- [makeRequirable](#makeRequirable)
- [xor](#xor)


### Installation

```sh
yarn add @temporg/ui-prop-types
```

### Usage

```js
import React from 'react'
import PropTypes from 'prop-types'

import { Children, controllable } from '@temporg/ui-prop-types'

class MyComponent extends React.Component {
  static propTypes = {
    children: Children.oneOf([SomeOtherComponent, AnotherComponent])
    selected: controllable(PropTypes.bool, 'onSelect'),
    onSelect: PropTypes.func
  }
  ...
}
```



[npm]: https://img.shields.io/npm/v/@temporg/ui-prop-types.svg
[npm-url]: https://npmjs.com/package/@temporg/ui-prop-types

[build-status]: https://travis-ci.org/rockcontent/rock-design-system.svg?branch=master
[build-status-url]: https://travis-ci.org/rockcontent/rock-design-system "Travis CI"

[license-badge]: https://img.shields.io/npm/l/rock-design-system.svg?style=flat-square
[license]: https://github.com/rockcontent/rock-design-system/blob/master/LICENSE

[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/rockcontent/rock-design-system/blob/master/CODE_OF_CONDUCT.md

---
_Source: https://npm.io/package/@temporg/ui-prop-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
