Socket
Socket
Sign inDemoInstall

solid-boring-avatars

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    solid-boring-avatars

Tiny SolidJS library that generates custom, SVG-based avatars from any username and color palette. Port of boring-avatars for Solid.


Version published
Weekly downloads
1
Maintainers
1
Install size
31.3 kB
Created
Weekly downloads
 

Readme

Source

Boring Avatars for SolidJS

Tiny SolidJS library that generates custom, SVG-based avatars from any username and color palette.

Port of boring-avatars for Solid.

Installation

npm install --save solid-boring-avatars
yarn add solid-boring-avatars
pnpm add solid-boring-avatars

Simple Usage

import type { AvatarProps } from "solid-boring-avatars";
import Avatar from "solid-boring-avatars";

// You can use `AvatarProps` type to get
// Avatar component's props.
const props: AvatarProps = {
  size: 40,
  name: "Vexcited",
  variant: "marble",
  colors: ["#92A1C6", "#146A7C", "#F0AB3D", "#C271B4", "#C20D90"]
};

export const Component = () => (
  <Avatar {...props} />
);

API

PropType
sizenumber or string, 40px (default)
squareboolean: false (default)
titleboolean: false (default)
namestring
variantoneOf: marble (default), beam, pixel,sunset, ring, bauhaus
colorsarray of colors

Keywords

FAQs

Last updated on 05 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc