Socket
Socket
Sign inDemoInstall

i2ui

Package Overview
Dependencies
10
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    i2ui

i2ui - Intuitively Understantable User Interface


Version published
Weekly downloads
6
increased by50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

i2ui

Intuitively Understantable User Interface

Usage

Installation:

npm install i2ui

Glossary


TagCloud

Live Demo

import { TagCloud } from 'i2ui';
...
<TagCloud
    fromStyle={{
        fontSize: 10,
        color: 'DarkBlue',
        backgroundColor: 'LightSkyBlue',
        margin: 5,
        padding: '1px 2px',
        borderRadius: 3,
        border: '2px solid DarkBlue',
        boxShadow: '0 0 6px #111',
    }}
    toStyle={{
        fontSize: 40,
        color: 'LightSkyBlue',
        backgroundColor: 'DarkBlue',
        margin: 10,
        padding: '2px 8px',
        borderRadius: 15,
        border: '5px solid LightSkyBlue',
        boxShadow: '10px 10px 15px #888',
    }}
    order="middle"
    options={[
        { text: 'Paris', rate: 2420069 },
        { text: 'Marseille', rate: 855393 },
        { text: 'Lyon', rate: 500715 },
        { text: 'Toulon', rate: 163760 },
        { text: 'Dunkirk', rate: 89882 },
        { text: 'Cambrai', rate: 32852 },
        { text: 'Mallemort', rate: 5298 },
    ]}
/>
NameRequiredTypeDescription
optionstrueArray<{text: string, rate: number}>Tags data
fromStyletrueReact.CSSPropertiesTag's style with lower rate
toStyletrueReact.CSSPropertiesTag's style with highest rate
orderfalsestringTag's order: none(default), desc, middle, asc, edge
renderOptionfalse(option: {text: string, rate: number},
style: React.CSSProperties)
=> React.ReactElement
Curstom render method for tag. Example:
renderOption={(tagOption, style) => <div style={style}>{tagOption.text} </div>}
classNamefalsestringContainer's class name
stylefalseReact.CSSPropertiesContainer's style

I2Number

Live Demo

import { I2Number } from 'i2ui';
...
<I2Number
    value={1234567.89}
    fromStyle={{ fontSize: '1em', opacity: 0.6 }}
    toStyle={{ fontSize: '4em', opacity: 1 }}
    decimalDigits={2}
/>
NameRequiredTypeDescription
valuetruenumberValue
fromStyletrueReact.CSSPropertiesPart of number's style with lower significance
toStyletrueReact.CSSPropertiesPart of number's style with highest significance
basicMaxValuefalsenumberMax value to empasize. Used in set of numbers to be basic.
Actually, this is the max mumber from the set.
verticalAlignfalsestringVertical align: top, center, bottom(default)
decimalDigitsfalsenumberNumber of decimal digits. Default is 0
groupDigitsfalsenumberNumber of group digits. Default is 3
groupSeparatorfalsestringSeparates groups of digits
decimalSeparatorfalsestringSeparates decimal part
classNamefalsestringContainer's class name
stylefalseReact.CSSPropertiesContainer's style

Keywords

FAQs

Last updated on 17 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc