1.0.4 • Published 3 years ago
badenweiler v1.0.4
badenweiler
A simple React component library
Install
npm install --save badenweiler
Badenweiler library
The Badenweiler library package consists of the following React components:
- MagicTimeline - A horizontal timeline component that accepts timeline events as props
Usage
import React from 'react'
import { MagicTimeline } from 'badenweiler'
function App() {
const example = 'Timeline title';
const styles = { height: '400px', width: '600px' }
return <MagicTimeline title={example} customStyles={styles} />
}
}
Other commands
Unit tests
npm run test:unit -- -u
Link
Link can be used to run the library locally before publishing. From badenweiler project root:
npm run build
npm link
From local test project:
npm link badenweiler
Publish to npmjs
The following shell commands are required for publishing the prjoect to npmjs
npm login
npm publish
License
MIT © thanders