Hr
Horizontal rule for email layouts.
A horizontal rule component with email-safe default styling. Renders a full-width divider with a subtle top border.
Import
tsx
import { Hr } from "@unmail/react";vue
<script setup>
import { Hr } from "@unmail/vue";
</script>Usage
tsx
import { Hr } from "@unmail/react";
export function Email() {
return (
<>
<p>Section one content</p>
<Hr style={{ borderTop: "2px solid #333", margin: "24px 0" }} />
<p>Section two content</p>
</>
);
}vue
<script setup>
import { Hr } from "@unmail/vue";
</script>
<template>
<p>Section one content</p>
<Hr :style="{ borderTop: '2px solid #333', margin: '24px 0' }" />
<p>Section two content</p>
</template>Props
All standard HTML <hr> element attributes are supported.
Default styles
css
width: 100%;
border: none;
border-top: 1px solid #eaeaea;Notes
border: noneis applied first to reset any default browser/email client borders, thenborder-topadds the visible divider line.- Override the
borderTopstyle to customize the divider appearance.