GitHub

/ horizontal-rule

HorizontalRule

@kumiki/components/horizontal-rule

Compound <HorizontalRule.Root> — semantic <hr> (or role="separator" <div>) with horizontal/vertical orientation.

This component, layer by layer

Styled, copy-paste presets (preview). Run pnpm kumiki add to drop the source into your project, then edit freely.

Live preview

Live preview…

Install
pnpm add @kumiki/atelier
Section divider
<script lang="ts">
  import { Tailwind as HR } from '@kumiki/atelier/horizontal-rule';
</script>

<section></section>
<HR.Root />
<section></section>

<!-- Vertical orientation (renders as a div with role=separator): -->
<HR.Root orientation="vertical" />

/ accessibility

Accessibility

axe-core — run on every PR (LTR + RTL × every documented state).

Keyboard

No component-specific keymap. Inherits standard browser focus / activation behaviour.

Test discipline

  • axe-core — run on every PR (LTR + RTL × every documented state).
  • APG keyboard tests — Playwright, hand-written per pattern.
  • VoiceOver / NVDA — Guidepup nightly schedule.
  • Type-level required names — title / aria-label / aria-labelledby.