{"id":17937929,"url":"https://github.com/brunocarvalhodearaujo/react-initial","last_synced_at":"2025-03-24T08:34:01.124Z","repository":{"id":27496166,"uuid":"114141241","full_name":"brunocarvalhodearaujo/react-initial","owner":"brunocarvalhodearaujo","description":"react component to make Gmail like text avatars for profile pictures","archived":false,"fork":false,"pushed_at":"2023-07-18T21:09:06.000Z","size":3140,"stargazers_count":5,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T13:08:41.612Z","etag":null,"topics":["avatar","initial","react"],"latest_commit_sha":null,"homepage":"https://brunocarvalhodearaujo.github.io/react-initial/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brunocarvalhodearaujo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-13T16:04:46.000Z","updated_at":"2023-07-12T13:11:33.000Z","dependencies_parsed_at":"2024-06-20T23:26:34.059Z","dependency_job_id":"931dab07-eaac-484a-91ef-4bbfd99bb568","html_url":"https://github.com/brunocarvalhodearaujo/react-initial","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunocarvalhodearaujo%2Freact-initial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunocarvalhodearaujo%2Freact-initial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunocarvalhodearaujo%2Freact-initial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunocarvalhodearaujo%2Freact-initial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunocarvalhodearaujo","download_url":"https://codeload.github.com/brunocarvalhodearaujo/react-initial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245235959,"owners_count":20582342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avatar","initial","react"],"created_at":"2024-10-28T23:08:22.821Z","updated_at":"2025-03-24T08:34:00.809Z","avatar_url":"https://github.com/brunocarvalhodearaujo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg\n    width=\"100px\"\n    heigth=\"100px\"\n    src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Silver_medal_icon_%28S_initial%29.svg/2000px-Silver_medal_icon_%28S_initial%29.svg.png\"\n    alt=\"react-initial\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eReact Initial\u003c/h1\u003e\n\u003cp align=\"center\"\u003eSimple react component to make Gmail like text avatars for profile pictures.\u003c/p\u003e\n\n[![npm version](https://badge.fury.io/js/react-initial.svg)](http://badge.fury.io/js/react-initial)\n[![License](https://img.shields.io/npm/l/react-initial.svg)](https://www.npmjs.com/package/react-initial) \n[![npm](https://img.shields.io/npm/dt/react-initial.svg)]()\n\n## Usage\n\n```js\nimport React, { Component } from 'react'\nimport { Initial } from 'react-initial'\n\nexport default class MyComponent extends Component {\n  render () {\n    return (\n      \u003cInitial\n        name='Bruno Carvalho de Araujo'\n      /\u003e\n    )\n  }\n}\n```\n\n## Props\n\nThe `Initial` component takes a couple of props that you can use to customize its behaviour:\n\n| **Name**     |**Type**| **Description**                                                 |**Default**|\n|--------------|--------|-----------------------------------------------------------------|-----------|\n| `name`       | string | Name of the user which the profile picture should be generated  | Name      |\n| `height`     | number | Height of the picture                                           | 100       |\n| `width`      | number | Width of the picture                                            | 100       |\n| `charCount`  | number | Number of characherts to be shown in the picture.               | 1         |\n| `textColor`  | string | Color of the text                                               | #ffffff   |\n| `fontSize`   | number | Font size of the character(s)                                   | 60        |\n| `fontWeight` | number | Font weight of the character(s)                                 | 400       |\n| `radius`     | number | Rounded corners                                                 | 0         |\n| `seed`       | number | Number to randomize the background color                        | 0         |\n| `color`      | string | Background color of the profile picture that should be generated| null      |\n| `useWords`   | boolean | number of characters while splitting the words over spaces     | null      |\n\n## Compatibility\n\n- Chrome\n- Firefox\n- Opera 9+\n- Safari 3.2+\n- iOS Safari 3.2+\n- Android Browser 3+\n\n## References to create project\n\n- [initial.js](https://github.com/judesfernando/initial.js)\n- [Creating TypeScript typings for existing React components](https://templecoding.com/blog/2016/03/31/creating-typescript-typings-for-existing-react-components/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunocarvalhodearaujo%2Freact-initial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunocarvalhodearaujo%2Freact-initial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunocarvalhodearaujo%2Freact-initial/lists"}