omi/components/avatar
dntzhang 818404d722 chore: gen script wording 2020-05-05 10:43:53 +08:00
..
demos/js-demo publish(@omiu/avatar) 2020-04-28 19:30:01 +08:00
scripts chore: gen script wording 2020-05-05 10:43:53 +08:00
src publish(@omiu/avatar) 2020-04-28 19:30:01 +08:00
README.md publish(@omiu/avatar) 2020-04-28 19:30:01 +08:00
package.json publish(@omiu/avatar) 2020-04-28 19:30:01 +08:00
tsconfig.json chore: init avatar and badge 2020-04-28 18:38:15 +08:00

README.md

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