@surstromming/separator

A thin rule between content.
278
Install
npm install @surstromming/separator
Latest Version:0.1.0
Vue:3
License:MIT
Last Updated:Oct 17, 2026
Links: GitHub  ·  npm
Maintainer: evgeniy_mnatsakanov

@surstromming/separator

A thin rule between content — a line across a menu, a divider between toolbar groups.

Dependency graph

graph LR
  separator["@surstromming/separator"]
  design["@surstromming/design"]
  separator --> design

Usage

<template>
  <p>Above</p>
  <Separator />
  <p>Below</p>

  <div style="display: flex; height: 1.5rem">
    <span>Left</span>
    <Separator orientation="vertical" />
    <span>Right</span>
  </div>
</template>

<script setup lang="ts">
import { Separator } from '@surstromming/separator'
</script>

Props

Prop Type Default Notes
orientation horizontal | vertical horizontal Vertical needs a parent with a set cross-size
decorative boolean true false marks a real semantic divide

Tokens

border, 1px. A vertical separator uses align-self: stretch, so it fills the height of the flex row it sits in.

Accessibility

Decorative by default — a rule drawn purely for looks announces nothing. Set decorative="false" when the line marks a genuine grouping boundary; it then becomes role="separator" with the right aria-orientation.

Related Packages

@surstromming/popover

Panel anchored under a trigger; closes on outside click and Escape.

1,481 0
@surstromming/dialog

Modal dialog, with an alert-dialog mode and sheets on the screen's edges.

1,382 0
@surstromming/design

Everything related to design system, including colors, typography, and spacing.

1,363 0
@surstromming/scroll-area

A scroll container with an Edge-style overlay scrollbar.

1,157 0

Version History

Version Released Vue License
0.1.0 ^3.4.0 MIT