SnowballSH Foundation UI

Divider

Pick a framework. Both use the same recipe, so the styling matches exactly.

Above the line

LeftRight
Divider props for React
PropTypeDefaultDescription
orientation"horizontal" | "vertical"horizontalLine direction.

Also takes className and children. Anything else passes through to the div.

divider.demo.tsx
import { Divider } from "../react/index.js";

export default function DividerDemo() {
  return (
    <div className="flex flex-col gap-4">
      <p className="text-ink-secondary">Above the line</p>
      <Divider />
      <div className="flex h-10 items-stretch gap-4">
        <span className="self-center text-ink-secondary">Left</span>
        <Divider orientation="vertical" />
        <span className="self-center text-ink-secondary">Right</span>
      </div>
    </div>
  );
}