charcell 0.1.0
mode

Separator

a single or double line, across or down. it can join the frame or the line it meets.

usage

example

code

import { Separator } from 'charcell/react';

export function SeparatorExample() {
  return <Separator />;
}

as text

at rest
────────────────────

props

orientation'horizontal' | 'vertical'= 'horizontal'
The line's own axis.
decorativeboolean
Renders it presentation-only (role="none"), for a divider that would be noise to a screen reader.
border'single' | 'double'= 'single'
The stroke: single for structure, double for emphasis.
insetboolean
Ends the stroke at its end cells' centers (╶──╴).
join'start' | 'end' | 'both'
Runs these ends on to meet the line beyond: a frame's ring when the separator sits directly in its body, or else the line in the next cell (├ ┤ ┬ ┴).

it also takes any other attribute of its <div>.