![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
avatar-chip
Advanced tools
Readme
React avatar-chip based on the Chip component of "material-ui" and "@multiavatar/multiavatar" package
import dependencies
import { Typography, Button, ButtonGroup, Container, Paper, Box, Avatar, Grid } from "@material-ui/core";
import { AvatarChip, AvatarLogo, } from "avatar-chip";
default avatar is based on personName if "src" is not provided,
default label is based on personName, if "label" is not provided
<AvatarChip
size={["4rem", "3rem", "2rem", "1.5rem"]}
personName={"bob"}
/>
just avatar, no label
<AvatarChip
size={["4rem", "3rem", "2rem", "1.5rem"]}
personName={"mike"}
onClick={function () { alert("hello mike") }}
avatarProps={{ onClick: function (e) { e.stopPropagation(); alert("hi") } }}
src="https://picsum.photos/200/300"
label={<></>}
/>
Avatar with hover tip
<AvatarChip
size={["4rem", "3rem", "2rem", "1.5rem"]} personName={"毛fdsdsdsdsdsd帅"}
style={{backgroundColor:"skyblue",color:"blue"}}
onClick={function () { alert("clicked") }}
avatarProps={{ size:["1rem","2rem","3rem","4rem","5rem"], onClick: function (e) { e.stopPropagation(); alert("hi") } }}
src="https://picsum.photos/200/300"
label={
<>
<Typography variant="h5" style={{ }}>
06355 马小帅
</Typography>
<Typography variant="h5" style={{ fontSize: "0.8rem", display: "block", color: "gray" }}>
银行总行法律合规部
</Typography>
</>
}
hoverContent={
<>
<div style={{ display: "flex", justifyContent: "center" }}><AvatarLogo size={["2.8rem"]} personName={"毛fdsdsdsdsdsd帅"} /></div>
<Typography variant="h5" style={{ fontSize: "1rem", }}>
06355 马小帅
</Typography>
<Typography variant="h5" style={{ fontSize: "0.8rem", display: "block", color: "gray" }}>
银行总行法律合规部
</Typography>
</>
}
/>
https://vibrant-liskov-396f96.netlify.app/
GitHub https://github.com/cr7cr8/avatar-chip.git
git push -f origin master npm version patch npm publish
FAQs
![aCapture](https://user-images.githubusercontent.com/106660/132795601-b5862112-d3fb-43b6-a6fe-e28e78eb867c.JPG)
The npm package avatar-chip receives a total of 1 weekly downloads. As such, avatar-chip popularity was classified as not popular.
We found that avatar-chip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.