Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
67 lines (42 loc) · 1.79 KB

avatar.md

File metadata and controls

67 lines (42 loc) · 1.79 KB
title
ion-avatar

import Props from '@ionic-internal/component-api/v8/avatar/props.md'; import Events from '@ionic-internal/component-api/v8/avatar/events.md'; import Methods from '@ionic-internal/component-api/v8/avatar/methods.md'; import Parts from '@ionic-internal/component-api/v8/avatar/parts.md'; import CustomProps from '@ionic-internal/component-api/v8/avatar/custom-props.mdx'; import Slots from '@ionic-internal/component-api/v8/avatar/slots.md';

<title>ion-avatar: Circular Application Avatar Icon Component</title>

import EncapsulationPill from '@components/page/api/EncapsulationPill';

Avatars are circular components that usually wrap an image or icon. They can be used to represent a person or an object.

Avatars can be used by themselves or inside of any element. If placed inside of an ion-chip or ion-item, the avatar will resize to fit the parent component. To position an avatar on the left or right side of an item, set the slot to start or end, respectively.

Basic Usage

import Basic from '@site/static/usage/v8/avatar/basic/index.md';

Chip Avatar

import Chip from '@site/static/usage/v8/avatar/chip/index.md';

Item Avatar

import Item from '@site/static/usage/v8/avatar/item/index.md';

Theming

CSS Custom Properties

import CSSProps from '@site/static/usage/v8/avatar/theming/css-properties/index.md';

Properties

Events

Methods

CSS Shadow Parts

CSS Custom Properties

Slots