1.0.3 • Published 1 year ago

dicebear-next v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Dicebear in Next.js

Start using Dicebear avatar generation services in your Next.js projects.

🔨 Installation

# npm
npm i dicebear-next

# yarn
yarn add dicebear-next

💼 Usage

import Dicebear from 'dicebear-next';

<>
  {/* 
    It is a regular Next.js Image component,
    but with options.
   */}
  <Dicebear.Adventurer
    alt={'Dicebear avatar'}
    options={{
      seed: 'XenoPOMP',
      flip: false,
      rotate: 0,
      scale: 100,
      radius: 0,
      backgroundType: ['solid', 'gradientLinear'],
    }}
    width={100} // Required
    height={100} // Required
    style={{
      width: '100%',
      aspectRatio: 1,
    }}
  />
</>

🍽️ Result

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago