0.3.14 • Published 11 months ago
@highoutput/hds-avatar v0.3.14
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
11 months ago
0.3.13
11 months ago
0.3.12
12 months ago
0.3.0
1 year ago
0.3.4
1 year ago
0.3.3
1 year ago
0.2.1
1 year ago
0.2.7
1 year ago
0.2.6
1 year ago
0.2.9
1 year ago
0.2.8
1 year ago
0.2.2
1 year ago
0.2.0
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago