All Projects → CeamKrier → react-peeps

CeamKrier / react-peeps

Licence: MIT license
React implementation of the Open Peeps

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to react-peeps

peeps-generator
Build and customize your open peeps illustrations right away!
Stars: ✭ 32 (-23.81%)
Mutual labels:  avatar-generator, open-peeps
github-avatar-generator
Generate github-style avatar with java awt
Stars: ✭ 37 (-11.9%)
Mutual labels:  avatar-generator
awesome-web-online-tools
Many many useful Web Online Tools For Web Developers&Programmers
Stars: ✭ 13 (-69.05%)
Mutual labels:  avatar-generator
pixitar
🧝 Pixitar is an avatar generation library written in Ruby.
Stars: ✭ 20 (-52.38%)
Mutual labels:  avatar-generator
Multiavatar
Multiavatar is a free and open-source multicultural avatar maker.
Stars: ✭ 64 (+52.38%)
Mutual labels:  avatar-generator
boring-avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Stars: ✭ 3,582 (+8428.57%)
Mutual labels:  avatar-generator
vue-nice-avatar
vue-nice-avatar.vercel.app
Stars: ✭ 74 (+76.19%)
Mutual labels:  avatar-generator
avatar-gen
pillow 生成头像,中英文首字母或者随机像素化。Using pillow for generate avatars, first letter of string in Chinese and English or random pixel like avatars.
Stars: ✭ 31 (-26.19%)
Mutual labels:  avatar-generator
minidenticons
Super lightweight SVG identicon (icon avatar) generator
Stars: ✭ 89 (+111.9%)
Mutual labels:  avatar-generator
avatarcropper
Simple quick avatar cropper!
Stars: ✭ 45 (+7.14%)
Mutual labels:  avatar-generator
Photo2cartoon
人像卡通化探索项目 (photo-to-cartoon translation project)
Stars: ✭ 2,845 (+6673.81%)
Mutual labels:  avatar-generator
AvatarGAN
Generate Cartoon Images using Generative Adversarial Network
Stars: ✭ 24 (-42.86%)
Mutual labels:  avatar-generator
monsterID
The original MonsterID implementation
Stars: ✭ 56 (+33.33%)
Mutual labels:  avatar-generator
identicon-api
A simple API to retrieve SVG identicons
Stars: ✭ 15 (-64.29%)
Mutual labels:  avatar-generator
Avataaars Generator
Simple generator React app for avataaars
Stars: ✭ 2,078 (+4847.62%)
Mutual labels:  avatar-generator
monsterid
MonsterID adaptation for Composer and modern PHP versions
Stars: ✭ 20 (-52.38%)
Mutual labels:  avatar-generator
monsterid
Node.js porting of the original PHP library
Stars: ✭ 15 (-64.29%)
Mutual labels:  avatar-generator
react-nice-avatar
react library for generating avatar
Stars: ✭ 700 (+1566.67%)
Mutual labels:  avatar-generator
AvatarImageGenerator
Android library to generate image avatar from the first letter of a username. Letter avatar like Gmail Android best practice
Stars: ✭ 61 (+45.24%)
Mutual labels:  avatar-generator
avatar-generator
Avatar generator in Java
Stars: ✭ 95 (+126.19%)
Mutual labels:  avatar-generator

react-peeps

React implementation of the hand drawn illustration library called Open Peeps

peeps example

Installation

npm install react-peeps

Edit react-peeps-playground

Web generator available at https://www.opeeps.fun

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Peep from 'react-peeps';

const styles = {
	peepStyle: {
		width: 300,
		height: 300,
		justifyContent: 'center',
		alignSelf: 'center'
	},
	circleStyle: {
		backgroundColor: '#F3D34A',
		width: 270,
		height: 270,
		alignSelf: 'center',
		borderRadius: 135,
		overflow: 'hidden',
		borderWidth: 3,
		borderColor: 'black',
		borderStyle: 'solid'
	},
	showcaseWrapper: {
		display: 'flex',
		justifyContent: 'center',
		height: '-webkit-fill-available'
	}
};

const Showcase: React.FC = () => {
  return (
    <div style={styles.showcaseWrapper}>
      <Peep
        style={styles.peepStyle}
        accessory='GlassRoundThick'
        body='Shirt'
        face='Cute'
        hair='ShortVolumed'
        facialHair='Dali'
        strokeColor='#e6e6e6'
        backgroundColor='red'
      />

      <Peep
        style={styles.peepStyle}
        circleStyle={styles.circleStyle}
        accessory='GlassRoundThick'
        body='Shirt'
        face='Cute'
        hair='ShortVolumed'
        facialHair='Dali'
        strokeColor='#e6e6e6'
        viewBox={{ x: '0', y: '0', width: '1050', height: '1200' }}
      />

      <Peep
        style={{...styles.peepStyle, transform: 'scale(-1, 1)'}}
        accessory='GlassRoundThick'
        body='Shirt'
        face='Cute'
        hair='ShortVolumed'
        facialHair='Dali'
        strokeColor={{degree: 300, firstColor: '#2E8A57', secondColor: '#81087F'}}
      />
    </div>
  );
};

ReactDOM.render(<Showcase />, document.getElementById('main'));

Props

Attribute Type Description Required
accessory string Defines the picked accessory piece name No
body string Defines the picked body type No
face string Defines the picked face expression name No
facialHair string Defines the picked facial hair type No
hair string Defines the picked hair type No
style CSSProperties Style of the SVG element No
circleStyle CSSProperties Wraps the SVG into a div element and passes style to that div No
strokeColor string | GradientType Defines the stroke color of lines No
backgroundColor string | GradientType Defines the background color of the peep's pieces No
wrapperBackground string | GradientType Defines the background of SVG No
viewBox { x: string; y: string; width: string; height: string; } Defines the viewable dimensions of the SVG No

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Thanks 🙌

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].