import Layout from '../../components/Layout' import { Playground } from '../../components/Playground' import { ComponentsSidebar } from '../../sidebars' import { Code, Heading, Paragraph } from '@knkui/typography'; export default function Avatar() { return ( Basic example A default image is displayed for avatars when a chosen source is unavailable (for example, when there is a problem displaying the image due to an error), or simply unspecified. `} /> Appearance Circle Use a circle avatar to represent a person. `} /> Square Use square avatars to represent an entity, such as a project, repository or space. Opt for a height and width of 100 percent. `} /> Size xxlarge Use xxlarge circle avatars in places where larger avatars are needed. For example, the Atlassian People Directory. This size is currently not used for square avatars. `} /> xlarge Use xlarge circle avatars where they’re needed to display prominently on a page. This size is currently not used for square avatars. `} /> large Use large circle avatars to represent people for main page titles, like a user's account settings. Use large square avatars to represent main entity titles like Jira projects or Confluence spaces. `} /> medium Use medium circle avatars in activity streams or comments. Use medium square avatars in table views for project listings. `} /> small Use small circle avatars in small areas like 40px text fields, and square avatars for use in things like dropdown menus. `} /> xsmall Use xsmall circle and square avatars for onscreen metadata such as in Jira issues or dropdown menus. `} /> Presence busy `} /> focus `} /> offline `} /> online `} /> Status approved `} /> declined `} /> locked `} /> AvatarItem An avatar item is a wrapper that goes around an avatar when it's displayed alongside text, such as a name or status. Background color Use a backgroundColor to change the background color of the avatar. } /> ` } /> States Disabled Use isDisabled to show the avatar is disabled. } /> ` } /> Text Primary text Use primaryText to style the avatar text as primary text. } /> ` } /> Secondary text Use secondaryText to style the avatar text as secondary text. } /> ` } /> Composing text primaryText and secondaryText can be composed together. } /> ` } /> ) }