Separator

A visual divider for separating content sections.

Installation

Install the component package, shared coss-svelte theme, and Bits UI peer.

npm install coss-svelte @coss-svelte/theme bits-ui

Usage

Import the Svelte component exports directly from the package.

import { Separator } from "coss-svelte";

Anatomy

Separator exposes a single component export for the current implementation.

API Reference

Separator

A visual divider for separating content sections.

PropTypeDefaultDescription
orientationOrientation"horizontal"Layout direction for the component.
children : Snippet<[]>bind:ref : HTMLElement | null

Inherits from Bits UI Separator.Root.

Implementation Details

Status
Stable
Foundation
bits
Category
Content & Display
Particles
1