@omiu/avatar

A head that symbolizes an image or personality

Usage no npm install needed!

<script type="module">
  import omiuAvatar from 'https://cdn.skypack.dev/@omiu/avatar';
</script>

README

Avatar

A head that symbolizes an image or personality

Import

import '@omiu/avatar'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/avatar"></script>

Usage

<o-avatar></o-avatar>

API

Props

{
  alt?: string,
  src?: string,
  size?: number,
  square?: boolean,
  icon?: string,
  color?: string,
  backgroundColor?: string
}

默认属性

{
  size: 40,
  color: 'white',
  backgroundColor: '#ccc'
)