---
title: "Horizontal rule animated icon"
description: "Horizontal rule animated icon (Text & document editing). A divider is drawn between two content blocks. Light: the rule draws quietly. Strong: the blocks press toward the gap, the rule sweeps across in one stroke, and the blocks spring back to rest."
canonical: https://generativeicons.com/icons/horizontal-rule/
---

# Horizontal rule animated icon

A divider is drawn between two content blocks. Light: the rule draws quietly. Strong: the blocks press toward the gap, the rule sweeps across in one stroke, and the blocks spring back to rest.

- Id: `horizontal-rule`
- Category: Text & document editing
- Search terms: divider, separator, hr, horizontal line, dividing line, separator line, thematic break, insert divider
- Two states: prepared to result, 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/horizontal-rule.lottie (dotLottie, 7326 bytes, sha256 0f9407976b875008232115821a4aba54cca15466a12664ab0d9c00c1aacaf2f0)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add horizontal-rule
```

## React

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

export function HorizontalRuleIcon() {
  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/horizontal-rule.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/horizontal-rule/ · https://generativeicons.com/api/icons/horizontal-rule
