---
title: MagneticFilings
description: "Thousands of tiny iron filings scattered on paper that swing to align with a magnetic field around the cursor, tracing out the field lines — a dipole whose axis follows the cursor's motion draws the classic two-lobed swirl, and every sweep of the magnet sends a glowing wave of filings flipping and settling"
category: Interactive
componentType: Generator
requiresChild: false
sourceUrl: https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/shaders/MagneticFilings/index.ts
---

# MagneticFilings

Thousands of tiny iron filings scattered on paper that swing to align with a magnetic field around the cursor, tracing out the field lines — a dipole whose axis follows the cursor's motion draws the classic two-lobed swirl, and every sweep of the magnet sends a glowing wave of filings flipping and settling

## Props

## Usage

```vue-html
<Shader>
  <MagneticFilings />
</Shader>
```

```jsx
<Shader>
  <MagneticFilings />
</Shader>
```

```svelte
<Shader>
  <MagneticFilings />
</Shader>
```

```tsx
<Shader>
  <MagneticFilings />
</Shader>
```

```javascript
import { createShader } from 'shaders/js'

const shader = await createShader(canvas, {
  components: [
    { type: 'MagneticFilings', props: {} }
  ]
})
```