npm.io
0.0.13 • Published 7 years ago

ys-react

Licence
MIT
Version
0.0.13
Deps
4
Size
46 kB
Vulns
0
Weekly
0
Stars
2
DeprecatedThis package is deprecated

dna-react

Build Status codecov npm version

React component library implementing YouSee 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