0.3.5 • Published 11 days ago

@igloo-ui/metric v0.3.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 days ago

Metric

A metric component is a button that visually represents a specific metric or measurement. It provides a concise and interactive way for users to access important information or track key performance indicators.

Installation

To install @igloo-ui/metric in your project, you will need to run the following command using npm:

npm install @igloo-ui/metric

If you prefer Yarn, use the following command instead:

yarn add @igloo-ui/metric

Usage

Then to use the component in your code just import it!

import Metric from '@igloo-ui/metric';
import Wellness from '@igloo-ui/icons/dist/Wellness';

const [selected, setSelected] = React.useState(false);
const handleOnPress = () => {
  setSelected(!selected);
};

<Metric
  value={20}
  variation={3}
  label="Metric Name"
  icon={<Wellness size="medium" />}
  onPress={handleOnPress}
  appearance={selected ? 'selected' : 'positive'}
/>;
0.3.5

11 days ago

0.3.4

26 days ago

0.3.3

2 months ago

0.3.2

3 months ago

0.3.1

3 months ago

0.3.0

4 months ago

0.2.5

4 months ago

0.2.4

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.1

6 months ago

0.2.0

8 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.0

10 months ago