dna-react
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.