📲
HC Mobile App UI Docs
  • Introduction
  • Foundations
    • Colors
    • Icons
    • Layout Primitives
    • Theming
  • Typography
    • Heading
    • Text
    • Custom Fonts
  • Components
    • Accordion
    • Avatar
    • Bottom Sheet
    • Button
    • Button Group
    • Card List
    • Card List Item
    • Checkbox
    • Chip
    • Date Picker
    • Divider
    • Expandable Card
    • Floater
    • Horizontal List
    • Icon
    • Icon Toggle
    • Link
    • List Header
    • Lower Prompt
    • Nestable List
    • Pill Toggle
    • Radio
    • Select Picker
    • Selectable List
    • Text Input
    • Tiles
  • Utilities
    • Device Utilities
    • Layout Utilities
  • Resources
    • Issues
    • Changelog
    • GitHub
Powered by GitBook
On this page
  1. Components

Avatar

PreviousAccordionNextBottom Sheet

Last updated 3 years ago

CtrlK
  • Installation
  • Example
  • Props

Installation

import { Avatar, AvatarProps } from 'hc-mobile-app-ui';

Example

Props

Name
Type
Description

uri

string

URL of the image.

size

'tile' | 'profile' | number

Size of the Avatar

radius

'none' | 'small' | 'full'

Adds border radius of the specified size.

initials

string

Shows the initials as placeholder when image is unavailable.

marker

ReactElement

A React element to be rendered over the bottom-right corner of the image/icon.

markerOffsetRight

number

Position of marker from right side.

markerOffsetBottom

number

Position of marker from bottom.

inversed

boolean

Renders a white icon instead of black.

onPress

function

Function to be called when the avatar is pressed.