@keethealth/keet-ui

0.2.14 • Public • Published

Keet Health UI Components

NPM

Install

yarn add @keethealth/keet-ui
# or
npm install @keethealth/keet-ui

Usage

Import the library's stylesheet

@import "~@keethealth/keet-ui/dist/index.css";

Import the named components

import React, { Component } from 'react'

import { NamedComponent } from '@keethealth/keet-ui'

class Example extends Component {
  render () {
    return (
      <NamedComponent />
    )
  }
}

Development

Local development with real time updates in applications where @keethealth/keet-ui is used as a dependency is possible using symlinks.

  1. Navigate to the directory of this repo and start development mode
cd keet-ui
yarn start
  1. Run the link command on this package
yarn link
# or
npm link
  1. Navigate to the app that uses this package
cd ../patient-ui
  1. Create a symlink
yarn link @keethealth/keet-ui
# or
npm link @keethealth/keet-ui

This creates a symlink at patient-ui/node_modules/@keethealth/keet-ui that links to your local copy of the library, allowing you to make live updates to the library that is immediately reflected on the consuming app. As long as both apps are running, there is no need to rebuild the app or restart any commands.

Readme

Keywords

none

Package Sidebar

Install

npm i @keethealth/keet-ui

Weekly Downloads

0

Version

0.2.14

License

none

Unpacked Size

4.27 MB

Total Files

6

Last publish

Collaborators

  • keethealth-dev