This package has been deprecated

Author message:

Please use @youseedk/dna-react instead

ys-react

0.0.13 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ys-react

Weekly Downloads

1

Version

0.0.13

License

MIT

Unpacked Size

47.2 kB

Total Files

23

Last publish

Collaborators

  • havgry