27Works UI Components
Install
npm install @27works/ui-components
yarn add @27works/ui-components
Components
Carousel
import React from 'react'
import { Carousel, Slide } from '@27works/ui-components'
const App = () => {
return (
<Carousel>
<Slide>
<div>
<h1>Slide 1</h1>
</div>
</Slide>
<Slide>
<div>
<h1>Slide 2</h1>
</div>
</Slide>
</Carousel>
)
}
export default App
Development
yarn install
yarn storybook
Testing within a project
To test the UI components in a project without having to publish a new version, use yarn link
:
cd ui-components
yarn link
cd ../my-project
yarn link @27works/ui-components