Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@devseed-ui/collecticons
Advanced tools
This modules allows you to use the collecticons icon font with the UI Library.
Many of the components use collecticons so it is advised to include this module.
To be able to use the collecticons, the global styles must be included.
yarn add @devseed-ui/collecticons
And add the collecticons global styles to the root of your application:
lang: jsx
---
import { DevseedUiThemeProvider } from '@devseed-ui/theme-provider';
import { CollecticonsGlobalStyle } from '@devseed-ui/collecticons';
export default function App () {
return (
<DevseedUiThemeProvider>
<CollecticonsGlobalStyle />
<Home title="Ui Library" />
</DevseedUiThemeProvider>
);
}
Some components use collecticons directly and you don't have to do anything. Others, like the Button allow you to pick an icon through a prop.
span: 3
---
<Button
variation="base-raised-light"
size="small"
title="Sample button"
onClick={() => {}}
useIcon="brand-collecticons"
>
Click Me
</Button>
span: 3
---
<DevseedUiThemeProvider>
<CollecticonsGlobalStyle />
<Button
variation="base-raised-light"
size="small"
title="Sample button"
onClick={() => {}}
useIcon="brand-collecticons"
>
Click Me
</Button>
</DevseedUiThemeProvider>
You can also use the icon as part of a pseudo element with styled-components.
lang: js
---
import collecticon from '@devseed-ui/collecticons';
const Icon = styled.span`
::before {
${collecticon('trash-bin')}
}
`;
The easiest way to know a collecticon's name is to visit [collecticons.io](http://collecticons.io/) and clicking the icon you want.
Its name will be copied to your clipboard. 😉
FAQs
devseed UI Kit Collecticons
The npm package @devseed-ui/collecticons receives a total of 122 weekly downloads. As such, @devseed-ui/collecticons popularity was classified as not popular.
We found that @devseed-ui/collecticons 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.