0.1.2 • Published 1 year ago

@highoutput/hds-skeleton v0.1.2

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

Usage

import { Skeleton } from "@highoutput/hds-skeleton";
import { Pagination } from "@highoutput/hds-pagination";
import { ThemeProvider,Box } from "@highoutput/hds";
import * as React from "react";

export default function Example() {
  const { data, loading, error } = useRemoteData()
  if (error) return <Box children='error' />

  return (

    <ThemeProvider>
      <Box>
      <Skeleton isLoaded={!loading}>
        <Heading>{data.title}</Heading>
      </Skeleton>
    </ThemeProvider>
  );
}
0.1.2

1 year ago

0.1.1

1 year ago