
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@swmansion/icons
Advanced tools
React and React Native components for Software Mansion icon pack.
Check out the native Example app
Check out the swm-icon-pack on Figma
yarn add @swmansion/icons
yarn add @swmansion/icons
react-native.config.js
file at the root of your project with:const path = require('path')
module.exports = {
project: {},
assets: [path.join(__dirname, 'node_modules', '@swmansion/icons', 'fonts')],
}
npx react-native-asset
yarn add @swmansion/icons
expo-font
and configure it in app.json
:{
"expo": {
"plugins": [
[
"expo-font",
{
"fonts": [
"./node_modules/@swmansion/icons/fonts/broken/swm-icons-broken.ttf",
"./node_modules/@swmansion/icons/fonts/outline/swm-icons-outline.ttf",
"./node_modules/@swmansion/icons/fonts/curved/swm-icons-curved.ttf"
]
}
]
]
}
}
import React from 'react';
import { Icon } from '@swmansion/icons';
const App = () => {
return (
<>
<Icon name='arrow-right' />
<Icon name='arrow-left' type='outline' size={36} color='red' />
</>
)
};
export default App;
Prop | Type | Default | Description |
---|---|---|---|
name (required) | string | Name of the icon you want to render | |
type | outline broken curved | outline | Selected type of the icon |
size | number | 24 | Width and height of the icon |
color | string | black / inherit | Color of the icon |
icons/
.iconType
and font-name
with proper values:yarn generate-icons -i icons/iconType -o fonts/iconType -f font-name
icons/
.iconMap
in /react-native-icon-pack/src/Icon/Icon.tsx
.iconVariants
in /react-icon-pack/src/Icon.tsx
.FAQs
Software Mansion Icon Pack
The npm package @swmansion/icons receives a total of 36 weekly downloads. As such, @swmansion/icons popularity was classified as not popular.
We found that @swmansion/icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.