A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/components/component-library/avatar-with-badge
Nidhi Kumari 0fe3633e4d
Added AvatarBadge component (#15676)
2 years ago
..
README.mdx Added AvatarBadge component (#15676) 2 years ago
avatar-with-badge.constants.js Added AvatarBadge component (#15676) 2 years ago
avatar-with-badge.js Added AvatarBadge component (#15676) 2 years ago
avatar-with-badge.scss Added AvatarBadge component (#15676) 2 years ago
avatar-with-badge.stories.js Added AvatarBadge component (#15676) 2 years ago
avatar-with-badge.test.js Added AvatarBadge component (#15676) 2 years ago
index.js Added AvatarBadge component (#15676) 2 years ago

README.mdx

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import { AvatarWithBadge } from './avatar-with-badge';

# AvatarWithBadge

The `AvatarWithBadge` is a wrapper component that adds badge display options to avatars.

<Canvas>
<Story id="ui-components-component-library-avatar-with-badge-avatar-with-badge-stories-js--default-story" />
</Canvas>

## Props

The `AvatarWithBadge` accepts all props below

<ArgsTable of={AvatarWithBadge} />

### Badge Position

Use the `badgePosition` prop to set the position of the badge, it can have two values `Top` and `Bottom`

<Canvas>
<Story id="ui-components-component-library-avatar-with-badge-avatar-with-badge-stories-js--badge-positions" />
</Canvas>

### Badge

Used to define the badge component to be rendered inside the `AvatarWithBadge`

### Badge Props

The required props to be passed to the badge.

### Children

The children to be rendered inside the AvatarWithBadge. Generally used with the `AvatarAccount`