Skip to main content

Starwind UI v3.7 is here with stable Vue and Svelte, the new Chart component, and full RTL support. Read the release notes

Starwind UI

A beautiful component library for Astro.

Components
Documentation
Examples

Installation

Usage

---
import { Separator } from "@/components/starwind/separator";
---
<div>
<h4 class="text-sm font-medium">Starwind UI</h4>
<p class="text-sm text-muted-foreground">A beautiful component library for Astro.</p>
</div>
<Separator />
<div class="flex h-5 items-center space-x-4 text-sm">
<div>Components</div>
<Separator orientation="vertical" />
<div>Documentation</div>
<Separator orientation="vertical" />
<div>Examples</div>
</div>

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 styled component. Standard HTML attributes remain available through the inherited interfaces noted below. Expand a prop to see named type definitions and framework-specific imports. 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

View version history v1.1.2 5 releases

v1.1.2

  • In Vue, this component now needs Vue 3.5.21 or newer.
  • Maintenance release for the component files that the CLI copies into your project. Only internal code changed, such as unused code and import order. Behavior stays the same.

v1.1.1

  • In Astro, an attribute that you set on Separator now wins over the component’s own default for the same attribute, such as role or aria-label.

v1.1.0

  • The component is now available for React as well as Astro. Its props and styles stay the same.

v1.0.2

  • The Tailwind variants now live in their own variants.ts file in the component folder.

v1.0.0

  • Initial release with starwind v1.10.0