@highoutput/ui-components
TypeScript icon, indicating that this package has built-in type declarations

0.4.11 • Public • Published

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/ui-components

Usage

// React main
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { ThemeProvider } from '@highoutput/ui-components';

const App = () => {
  return (<ThemeProvider><div>{...components here}</div></ThemeProvider>);
};

ReactDOM.render(<App />, document.getElementById('root'));
import { RadioImageGroup } from '@highoutput/ui-components';

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

Readme

Keywords

none

Package Sidebar

Install

npm i @highoutput/ui-components

Weekly Downloads

15

Version

0.4.11

License

MIT

Unpacked Size

5.49 MB

Total Files

283

Last publish

Collaborators

  • ccpacillos
  • rrmadjos
  • glvnzn
  • highoutputventures
  • highoutputdev