dicebear-next
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dicebear-next

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

21.9 kB

Total Files

5

Last publish

Collaborators

  • xeno_pomp