Skip to content
loseta

Components / Surfaces

Separator

Visually or semantically separates content.

Status stable

<hr class="separator" />

Installation

pnpm dlx loseta add separator
npx loseta add separator

Examples

Horizontal

loseta components


Native CSS with copy-paste distribution.

<div style="display: grid; gap: 0.75rem">
  <p>loseta components</p>
  <hr class="separator" />
  <p>Native CSS with copy-paste distribution.</p>
</div>

Vertical

Blog Docs Source
<div style="display: flex; align-items: center; gap: 1rem; height: 1.5rem">
  <span>Blog</span>
  <div class="separator" role="separator" aria-orientation="vertical" data-orientation="vertical"></div>
  <span>Docs</span>
  <div class="separator" role="separator" aria-orientation="vertical" data-orientation="vertical"></div>
  <span>Source</span>
</div>

Accessibility and behavior

  • Use <hr class="separator"> for a semantic horizontal separator. For vertical use <div role="separator" data-orientation="vertical">; decorative separators use role="presentation" or aria-hidden.

Files

components/separator.cssbase
styles/nova/separator.cssstyle

Install contract

The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.