0.1.0 • Published 11 months ago

@27works/ui-components v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

27Works UI Components

npm version

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
0.1.0

11 months ago