The Phosphor magnet straight icon depicts a simple bar magnet, commonly used in UI to represent concepts related to attraction, connection, or data retrieval.
Common uses
- Attraction/Repulsion toggle
- Data sync indicator
- Linking or connecting elements
Use it in React
Install
npm i @phosphor-icons/reactImport & render
import { MagnetStraight } from '@phosphor-icons/react';
<MagnetStraight size={24} />Styles
Phosphor ships this icon in 6 styles — each its own import:
regular
<MagnetStraight size={24} />thin
<MagnetStraight size={24} weight="thin" />light
<MagnetStraight size={24} weight="light" />bold
<MagnetStraight size={24} weight="bold" />fill
<MagnetStraight size={24} weight="fill" />duotone
<MagnetStraight size={24} weight="duotone" />Details
- Library
- Phosphor (1,512 icons)
- License
- MIT
- viewBox
0 0 256 256- Category
- technology & development
- Keywords
- magnetismsciencephysicstechnology & developmentobjectsmagnetstraightbar magnetattract
FAQ
- What does the magnet straight icon represent?
- It represents a bar magnet, symbolizing attraction, connection, or data retrieval in a UI context.
- How do I use the magnet straight icon in React?
- Import it from the library like this: import { MagnetStraight } from '@phosphor-icons/react'. Then use it as a React component: <MagnetStraight />.
- What is the license for this icon?
- The Phosphor icon library, including the magnet straight icon, is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Phosphor.
Looking for something else? Search Phosphor and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →