# ingo-canvas-library-milton

> Design library for ingo react-native projects

Latest version **0.1.73** (published 2023-07-07) · 0 weekly downloads

## Install

```sh
npm install ingo-canvas-library-milton
pnpm add ingo-canvas-library-milton
yarn add ingo-canvas-library-milton
bun add ingo-canvas-library-milton
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.73 |
| Published | 2023-07-07 |
| First published | 2023-07-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | goibibo |

## Links

- npm: https://www.npmjs.com/package/ingo-canvas-library-milton
- npm.io page: https://npm.io/package/ingo-canvas-library-milton

## Dependencies (2)

- [@types/react](https://npm.io/package/@types/react.md) ^17
- [@types/react-native-video](https://npm.io/package/@types/react-native-video.md) 5.0.7

## Recent versions

- 0.1.73 (latest) — 2023-07-07
- 0.1.72 — 2023-07-07
- 0.1.71 — 2023-07-07

## README

# react-native-components

Design library for ingo react-native projects

### Design guide

https://www.figma.com/file/8wxizvQ1u2RnV4WAaM1VuK/Host-App-Components

### How to use

1. `yarn add canvas-library`
2. Start using components

```
import {
  Heading,
  normalizeFontSize,
  Text
} from 'canvas-library';
```

## Storybook:

1. For every component you add, create a story file for the same to demonstrate the use of it.
   storybook -> <ComponentName>.stories.js
2. First page of stoy should have all versions of the component and then each individually, eg.,

```
storiesOf('Button', module)
 .addDecorator(Usage)
 .add(
   'All Buttons',
   () => (
     <>
       <Button {...getProps('primary')} />
       <Button {...getProps('secondary')} />
       <Button {...getProps('tertiary')} />
       <Button {...getProps('thin')} />
     </>
   ),
   {
     notes: 'A small component'
   }
 )
 .add('Default', () => <Button {...getProps('primary')} />)
 .add('Secondary', () => <Button {...getProps('secondary')} />)
 .add('Tertiary', () => <Button {...getProps('tertiary')} />)
 .add('Thin', () => <Button {...getProps('thin')} />);

```

3. In order to see web navigator of run, yarn storybook which will redirect you to http://localhost:7007/?path=/story/\*

## Knobs:

1. In order to provide control content in storybook to change context we can use _Knobs_:
   https://github.com/storybookjs/storybook/tree/master/addons/knobs#object
2. In case you pass object as value for a prop then make sure to enter valid JSON syntax while editing values inside the knob in app.

## Screenshots

<img src="./screenshots/storybook_navigator.png" width="240" /> <img src="./screenshots/storybook-preview.png" width="240" /><img src="./screenshots/storybook_actions.png" width="240" /><img src="./screenshots/storybook-actions.png" width="240" />

---
_Source: https://npm.io/package/ingo-canvas-library-milton · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
