shadcn-templ 2.0 beta. Switch to templUI v1
1.7k

Separator

Visually or semantically separates content.

shadcn-templ
The UI Kit for templ
A set of beautifully designed components that you can customize, extend, and build on.
package examples import "github.com/axadrn/shadcn-templ/v2/components/separator"

Installation

shadcn-templ add separator

Usage

import "github.com/axadrn/shadcn-templ/v2/components/separator"
@separator.Separator()

Vertical

Use Orientation: separator.OrientationVertical for a vertical separator.

Blog
Docs
Source
package examples import "github.com/axadrn/shadcn-templ/v2/components/separator"

Vertical separators between menu items with descriptions.

Settings Manage preferences
Account Profile & security
package examples import "github.com/axadrn/shadcn-templ/v2/components/separator"

List

Horizontal separators between list items.

Item 1
Value 1
Item 2
Value 2
Item 3
Value 3
package examples import "github.com/axadrn/shadcn-templ/v2/components/separator"

API Reference

Separator

The Separator component renders a semantic divider.

Prop Type Default
Orientation OrientationHorizontal | OrientationVertical OrientationHorizontal
Class string -