@gregorrackwitz/pnta-ui-library

0.1.8 • Public • Published

PNTA UI Library

Installation

npm

$ npm install @gregorrackwitz/pnta-ui-library

Usage

/** App.js */

import { Button } from '@gregorrackwitz/pnta-ui-library';

function App() {
  return (
    <div style={{'width':'150px', 'margin':'20px'}}>
      <Button title="Let's Go!" onClick={()=>handleButtonOnClick()}/>
    </div>
  );
}

export default App;

Basic commands

Run Storybook locally

To run storybook locally to view the current development state and to further develop the UI library navigate to the root folder of this project and run npm run storybook.

Run tests while developing

To run tests while developing, run npm run test:watch.

Build Storybook for production

To build the storybook components run npm run build. This creates a build folder which contains all files needed. Keep in mind that this folder is added to .gitignore so it won`t get pushed into the repository.

Here are further instructions to create/update the npm package: Distribute Storybook.

Package Sidebar

Install

npm i @gregorrackwitz/pnta-ui-library

Weekly Downloads

0

Version

0.1.8

License

ISC

Unpacked Size

570 kB

Total Files

6

Last publish

Collaborators

  • gregorrackwitz