![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@paprika/avatar
Advanced tools
Avatar component represents an object or entity and displays initials or icon.
Avatar component represents an object or entity and displays initials or icon.
yarn add @paprika/avatar
or with npm:
npm install @paprika/avatar
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | false | null | Avatar content. It can be initial as a string or icon |
backgroundColor | string | false | null | Background color of the Avatar |
color | string | false | null | Color for the initial or icon |
isRound | bool | false | false | Shape of the Avatar |
size | [ Avatar.types.size.SMALL, Avatar.types.size.MEDIUM, Avatar.types.size.LARGE] | false | Avatar.types.size.LARGE | Size of Avatar |
Avatar
component represents an object or entity and displays initials or icon.
By default, Avatar component sets the background and text color using the getAvatarColor
function with the children props value as the parameter.
import Avatar from "@paprika/avatar";
<Avatar>Terry Fox</Avatar>;
Access getAvatarColors
import Avatar from "@paprika/avatar";
import { getAvatarColors } from "@paprika/avatar/lib/helpers";
const color = getAvatarColors("Terry Fox");
<Avatar backgroundColor={color.backgroundColor} color={color.fontColor}>
Terry Fox
</Avatar>;
Set custom size, background and text color
import Avatar from "@paprika/avatar";
<Avatar backgroundColor="black" color="white" size="small">
Terry Fox
</Avatar>;
FAQs
Avatar component represents an object or entity and displays initials or icon.
The npm package @paprika/avatar receives a total of 1,959 weekly downloads. As such, @paprika/avatar popularity was classified as popular.
We found that @paprika/avatar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.