Skip to main content

Starwind UI v3.0 beta is now available! Read the migration guide

Starwind UI

A beautiful component library for Astro.

Components
Documentation
Examples

Installation

Framework Availability

Astro Available React Available

Separator is available for Astro and React.

Usage

Horizontal (Default)

Horizontal Separator

This is the default orientation.

Content Below

The separator divides content vertically.

Vertical

Left Content
Middle Content
Right Content

Custom Styling

Default border color

Custom color and thickness

Dashed style

API Reference

Styled Component API

These props are added or materially changed by the installed Astro styled component. Standard HTML attributes remain available through the inherited interfaces noted below. Follow the Primitive and Runtime links for lower-level behavior props.

Separator

Inherits div attributes. Omits `aria-orientation` and `role`.

Contains the following additional props:

Prop Type Default Toggle details
orientation "horizontal" | "vertical" "horizontal"
Description
Selects the horizontal or vertical layout direction.
Classification
Styled variant

Changelog

v1.1.0

  • Added contract-generated Astro and React implementations while preserving the component’s existing public API and styling.

v1.0.2

  • Refactor tailwind variants functions into separate variants.ts file

v1.0.0

  • Initial release with starwind v1.10.0