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 package, use:
npm i @highoutput/hds
Usage
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { ThemeProvider } from '@highoutput/hds';
const App = () => {
return (<ThemeProvider><div>{...components here}</div></ThemeProvider>);
};
ReactDOM.render(<App />, document.getElementById('root'));
import { RadioImageGroup } from '@highoutput/hds';
export const SamplePage = () => {
const [value, setValue] = useState('');
return (
<>
<Text>Select Image: {value}</Text>
<RadioImageGroup
avatars={[
{
value: 'Kat',
image: 'https://randomuser.me/api/portraits/women/44.jpg',
},
{
value: 'Kevin',
image: 'https://randomuser.me/api/portraits/men/86.jpg',
},
{
value: 'Andy',
image: 'https://randomuser.me/api/portraits/men/29.jpg',
},
{
value: 'Jess',
image: 'https://randomuser.me/api/portraits/women/95.jpg',
},
]}
onChange={v => setValue(v)}
/>
</>
);
};
Other Documented Usage
Contribute