@omiu/avatar
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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'
)

Package Sidebar

Install

npm i @omiu/avatar

Homepage

omijs.org

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

53 kB

Total Files

10

Last publish

Collaborators

  • dntzhang