---
title: music-library, an IconMuse music icon
description: Music library icon (Library & Social). Tags: collection, albums, stack. SVG, React, SwiftUI, Flutter and Compose usage.
---

# music-library

![music library](https://icons.chordmuse.app/svg/music-library.svg)

- **Category:** Library & Social
- **Tags:** collection, albums, stack
- **SVG file:** https://icons.chordmuse.app/svg/music-library.svg
- **Gallery:** https://icons.chordmuse.app/

## SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 8H20A2 2 0 0 1 22 10V19A2 2 0 0 1 20 21H4A2 2 0 0 1 2 19V10A2 2 0 0 1 4 8Z"/><path d="M4 5h16"/><path d="M6 2h12"/><path d="M8 16.5A2 2 0 1 0 12 16.5A2 2 0 1 0 8 16.5Z"/><path d="M12 16.5V11l3 1"/></svg>
```

## Usage

```html
<!-- Any website -->
<script type="module" src="https://icons.chordmuse.app/dist/icon-muse.js"></script>
<icon-muse name="music-library" size="24" label="music library"></icon-muse>
```

```tsx
// React / Next.js (npm package "iconmuse")
import { IconMuse } from 'iconmuse/react';
<IconMuse name="music-library" size={24} />
```

```swift
// SwiftUI (Swift Package "IconMuse")
import IconMuse
IconMuse.musicLibrary.image
```

```dart
// Flutter (package:iconmuse)
IconMuse(IconMuseIcons.musicLibrary)
```

```kotlin
// Jetpack Compose (app.chordmuse:iconmuse)
Icon(painterResource(IconMuse.musicLibrary), contentDescription = "music library")
// or R.drawable.ic_iconmuse_music_library
```
