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.
@tabler/icons-react
Advanced tools
A set of free MIT-licensed high-quality SVG icons for you to use in your web projects.
@tabler/icons-react is a React library that provides a collection of customizable SVG icons. These icons are designed to be simple, consistent, and easily integrated into React applications. The package offers a wide range of icons that can be used for various purposes such as UI elements, buttons, and navigation.
Basic Icon Usage
This feature allows you to import and use individual icons from the @tabler/icons-react package. The example demonstrates how to import the 'IconHome' component and use it within a React component.
import { IconHome } from '@tabler/icons-react';
function App() {
return (
<div>
<IconHome />
</div>
);
}
export default App;
Customizing Icon Size
This feature allows you to customize the size of the icons. The example shows how to set the size of the 'IconHome' component to 48 pixels.
import { IconHome } from '@tabler/icons-react';
function App() {
return (
<div>
<IconHome size={48} />
</div>
);
}
export default App;
Customizing Icon Color
This feature allows you to customize the color of the icons. The example demonstrates how to set the color of the 'IconHome' component to red.
import { IconHome } from '@tabler/icons-react';
function App() {
return (
<div>
<IconHome color="red" />
</div>
);
}
export default App;
Combining Multiple Icons
This feature allows you to use multiple icons together. The example shows how to import and use both 'IconHome' and 'IconUser' components within a React component.
import { IconHome, IconUser } from '@tabler/icons-react';
function App() {
return (
<div>
<IconHome />
<IconUser />
</div>
);
}
export default App;
react-icons is a popular library that provides a wide range of icons from various icon sets, including Font Awesome, Material Design, and more. It offers a similar functionality to @tabler/icons-react but with a broader selection of icons from different sources.
fontawesome-svg-core is part of the Font Awesome library, which is one of the most widely used icon libraries. It provides a comprehensive set of icons and allows for extensive customization. It is comparable to @tabler/icons-react in terms of customization options but offers a larger icon set.
Implementation of the Tabler Icons library for React applications.
Browse all icons at tabler-icons.io →
If you want to support my project and help me grow it, you can become a sponsor on GitHub or just donate on PayPal :)
yarn add @tabler/icons-react
or
npm install @tabler/icons-react
or
pnpm install @tabler/icons-react
or just download from Github.
It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
import { IconArrowLeft } from '@tabler/icons-react';
const App = () => {
return <IconArrowLeft />;
};
export default App;
You can pass additional props to adjust the icon.
<IconArrowLeft color="red" size={48} />
name | type | default |
---|---|---|
size | Number | 24 |
color | String | currentColor |
stroke | Number | 2 |
For more info on how to contribute please see the contribution guidelines.
Caught a mistake or want to contribute to the documentation? Edit this page on Github
Tabler Icons is licensed under the MIT License.
FAQs
A set of free MIT-licensed high-quality SVG icons for you to use in your web projects.
The npm package @tabler/icons-react receives a total of 289,735 weekly downloads. As such, @tabler/icons-react popularity was classified as popular.
We found that @tabler/icons-react demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.