@sinups/agg
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Avatar Gradient Generator

Demo

https://sinups.github.io/Avatar-Gradient-Generator

Установка

$ npm i @sinups/agg

Использование

import { useAvatarColor, useAvatarGradient } from '@sinups/agg';

const AvatarGradient = useAvatarGradient(user?.Id?.toString() ?? '');
style={{
    background: `${AvatarGradient}`,
 }}

// or

const AvatarColor = useAvatarColor(user?.Id?.toString() ?? '');
style={{
    background: `${AvatarColor}`,
 }}

Параметр функции

string

  • Тип: string
  • Обязателен: Да

Желательно использовать ID пользователя

TS

agg.d.ts declare module '@sinups/agg';

Readme

Keywords

Package Sidebar

Install

npm i @sinups/agg

Weekly Downloads

60

Version

2.0.0

License

none

Unpacked Size

6.87 kB

Total Files

6

Last publish

Collaborators

  • sinups