---
title: "Block user animated icon"
description: "Block user animated icon (Account & privacy). A prohibition slash strikes across the badge and stays; the person flinches in Strong. Unblock retracts the slash."
canonical: https://generativeicons.com/icons/block-user/
---

# Block user animated icon

A prohibition slash strikes across the badge and stays; the person flinches in Strong. Unblock retracts the slash.

- Id: `block-user`
- Category: Account & privacy
- Search terms: ban, ban user, banned, blocklist, blacklist, restrict, unblock, block contact, block account, blocked user
- Two states: allowed to blocked, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/block-user.lottie (dotLottie, 11603 bytes, sha256 532f34e01d3267ee5f8efc401c4746426a39ee953555f1589388b4b17003f9ba)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add block-user
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/block-user.mjs';

export function BlockUserIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/block-user.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/block-user/ · https://generativeicons.com/api/icons/block-user
