0.1.6 • Published 1 year ago

@highoutput/hds-popover v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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-popover

Usage

import {
  Popover,
  PopoverTrigger,
  PopoverContent,
  PopoverArrow,
  PopoverCloseButton,
  PopoverHeader,
  PopoverBody,
} from '@highoutput/hds-popover';
import { ThemeProvider, extendTheme, Box, Text } from '@highoutput/hds';
import { Button } from '@highoutput/hds-button';
import * as React from 'react';

export default function Example() {
  return (
    <ThemeProvider>
      <Popover>
        <PopoverTrigger>
          <Button>Trigger</Button>
        </PopoverTrigger>
        <PopoverContent>
          <PopoverArrow />
          <PopoverCloseButton />
          <PopoverHeader>Confirmation!</PopoverHeader>
          <PopoverBody>
            Are you sure you want to have that milkshake?
          </PopoverBody>
        </PopoverContent>
      </Popover>
    </ThemeProvider>
  );
}
0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago