1.2.7 • Published 4 years ago
badenweiler-ui v1.2.7
Getting started with badenweiler-ui
What is it?
A simple React component library.
HorizontalNav is a customizable horizontal nav component.
How can it be installed?
From your shell, go to the project's root folder and enter the following command:
npm install --save badenweiler-uiUsage
import React from 'react'
import { HorizontalNav } from 'badenweiler-ui'
function App() {
const props = {
title: 'the title',
buttonLeft: <button> News </button>,
buttonRightOne: <button> About </button>,
buttonRightTwo: <button> Settings </button>,
styles: {backgroundColor: 'blue'}
};
return <HorizontalNav {...props} />
}Available Scripts
The following scripts can be run within the project's root directory:
start
npm startRuns the app in the development mode.
Open http://localhost:3000 to view it in the browser.
test
Execute the tests
npm testExecute the tests and update snapshots
npm run test:unit -- -ubuild
Compiles the production files and places them in the dist folder.
npm run buildUseful commands
Link
Link can be used to run the library locally before publishing. From the project root:
bash npm run buildbash npm linkFrom local test project:
bash npm link badenweiler-ui
Publish to npmjs
The following shell commands are required for publishing the prjoect to npmjs
bash npm loginbash npm publish
License
MIT - thanders