Group

A container component for grouping related content with consistent styling.

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 { Group, GroupSeparator } from "coss-svelte";

Anatomy

  • Group
  • GroupSeparator

API Reference

Group

A container component for grouping related content with consistent styling.

children : Snippet<[]>

Inherits from Svelte component attributes.

GroupSeparator

Visually separates related content.

PropTypeDefaultDescription
orientation"horizontal" | "vertical""vertical"Layout direction for the component.
children : Snippet<[]>

Inherits from Svelte <span> attributes.

Implementation Details

Status
Stable
Foundation
native
Category
Content & Display
Particles
22