0.0.13 • Published 5 years ago

ys-react v0.0.13

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago