doodle-ui

Divider

A squiggly rule. Horizontal fills the width. Vertical fills the height.

<Divider orientation="horizontal" roughness={1.5} />

Usage

import { Divider } from "doodleui-react";

<Divider />
<Divider orientation="vertical" style={{ height: 120 }} />

Bowing defaults a little higher than other components so the line reads as a drawn stroke, not a hairline.

Props

PropTypeDefaultNotes
orientation"horizontal" | "vertical""horizontal"Axis of the squiggle.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.