0.3.4 • Published 11 months ago
@highoutput/hds-metrics v0.3.4
Getting started
We aim to build a library of custom ReactJS components that implements our unique UI design conventions. The ReactJS components will be based primarily on Chakra UI components. React Storybook will be used for documentation and testing.
Commands
To install the package, use:
npm i @highoutput/hds-metrics
Usage
import { ThemeProvider, extendTheme, Flex } from '@highoutput/hds';
import { ArrowPositiveChange } from '@highoutput/hds-icons';
import { Metrics } from '@highoutput/hds-metrics';
export default function Example() {
return (
<ThemeProvider>
<Metrics
metricLabel="Views 24 hours"
metricValue="4000"
metricChange="positive"
lastViewedText="vs last month"
viewDetailsText="View Details"
percentage={23}
icon={
<Flex
w={8}
h={8}
bg="green.100"
alignItems="center"
justify="center"
borderRadius={100}
>
<ArrowPositiveChange />
</Flex>
}
/>
</ThemeProvider>
);
}
0.3.4
11 months ago
0.3.1
1 year ago
0.3.3
11 months ago
0.2.12
1 year ago
0.2.11
1 year ago
0.2.10
1 year ago
0.2.7
1 year ago
0.2.6
1 year ago
0.2.9
1 year ago
0.2.5
1 year ago
0.1.15
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.16
1 year ago
0.2.2-alpha.0
1 year ago
0.2.2
1 year ago
0.2.4
1 year ago
0.1.13
1 year ago
0.1.12
1 year ago
0.1.11
1 year ago
0.1.10
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago