0.3.4 • Published 2 years 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
2 years ago
0.3.1
2 years ago
0.3.3
2 years ago
0.2.12
2 years ago
0.2.11
2 years ago
0.2.10
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.9
2 years ago
0.2.5
2 years ago
0.1.15
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.16
2 years ago
0.2.2-alpha.0
2 years ago
0.2.2
2 years ago
0.2.4
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
3 years ago
0.1.1
3 years ago