# ys-react

> React library for the YouSee design system

Latest version **0.0.13** (published 2019-03-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ys-react
pnpm add ys-react
yarn add ys-react
bun add ys-react
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.13 |
| Published | 2019-03-27 |
| First published | 2019-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 46.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Magnus Havgry |
| Maintainers | havgry |

## Links

- npm: https://www.npmjs.com/package/ys-react
- Repository: https://github.com/youseedk/dna-react
- Homepage: https://github.com/youseedk/dna-react#readme
- Issues: https://github.com/youseedk/dna-react/issues
- npm.io page: https://npm.io/package/ys-react

## Dependencies (4)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@youseedk/dna](https://npm.io/package/@youseedk/dna.md) ^0.36.0-0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.2

## Recent versions

- 0.0.13 (latest) — 2019-03-27
- 0.0.12 — 2019-03-27
- 0.0.11 — 2019-03-27
- 0.0.10 — 2019-03-27
- 0.0.9 — 2019-03-27
- 0.0.8 — 2019-03-17
- 0.0.7 — 2019-03-17
- 0.0.6 — 2019-03-16
- 0.0.5 — 2019-03-16
- 0.0.4 — 2019-03-16
- 0.0.3 — 2019-03-16
- 0.0.2 — 2019-02-24
- 0.0.1 — 2019-02-24

## README

# dna-react
[![Build Status](https://travis-ci.com/havgry/ys-react.svg?branch=master)](https://travis-ci.com/havgry/ys-react) [![codecov](https://codecov.io/gh/havgry/ys-react/branch/master/graph/badge.svg)](https://codecov.io/gh/havgry/ys-react) [![npm version](https://badge.fury.io/js/ys-react.svg)](//npmjs.com/package/ys-react)

React component library implementing [YouSee DNA](https://github.com/youseedk/dna). At this point in time, consider it a proof of concept of a component-based implementation distributed with npm (no Sitecore dependencies whatsoever) and documented in Storybook.

## Installation and use

`yarn add ys-react` or `npm i ys-react`. Currently only a button component is available and can be used like so:

```
import React from 'react'
import { Button } from 'ys-react'

const MyComponent = () => (
  <div>
    My component is good and does all the things
    <Button
      label="Scratch me, please"
      onClick={() => { alert('Thank you!') }}
      variant="cta" />
  </div>
)

export default MyComponent
```

### Peer dependencies

Please note that both `react` and `react-dom` are required peer dependencies.

## Documentation
[For now, Storybook is all you get](https://youseedk.github.io/dna-react/)

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