0.3.14 • Published 2 years ago

@highoutput/hds-avatar v0.3.14

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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-avatar

Usage

import { Avatar, AvatarGroup, AvatarLabel, withAvatar } from "@highoutput/hds-avatar";
import { ThemeProvider, extendTheme } from "@highoutput/hds";

export default function Example() {
  return (
    <ThemeProvider theme={extendTheme(withAvatar())}>
      <Avatar
        size="xl"
        src="https://i.pravatar.cc/300"
        name="John Doe"
        onlineIndicator
        isOnline
        clickable
        onClick={function () {}}
      />

      <AvatarGroup size="md" max={3} mt={8}>
        <Avatar src="https://i.pravatar.cc/300?u=1" />
        <Avatar src="https://i.pravatar.cc/300?u=2" />
        <Avatar src="https://i.pravatar.cc/300?u=3" />
        <Avatar src="https://i.pravatar.cc/300?u=4" />
        <Avatar src="https://i.pravatar.cc/300?u=5" />
      </AvatarGroup>

      <AvatarLabel
        mt={8}
        size="sm"
        src="https://i.pravatar.cc/300"
        name="Mary Doe"
        supportText="marydoe@dummy.bla"
        fallback={false}
      >
        <Avatar size="xl" />
      </AvatarLabel>
    </ThemeProvider>
  );
}
0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.1

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago