Pallas UI
DocsComponents
Core Concepts
    • Introduction
    • Getting Started
    • Theming
    • Color Tokens
    • Spacing & Sizing
    • Layout Guide
    • AspectRatio
    • Box
    • Flex
    • Grid
    • Shapes
Previews
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Breadcrumb
    • Button
    • Carousel
    • Checkbox
    • Combobox
    • Command
    • Date Picker
    • Form
    • Input
    • Input OTP
    • Label
    • MenuBar
    • Modal
    • Popover
    • Progress
    • Radio Group
    • Segmented
    • Select
    • Separator
    • Sheet
    • Sidebar
    • Skeleton
    • Slider
    • Spinner
    • Steps
    • Switch
    • Tabs
    • Textarea
    • Toast
    • Tooltip
    • Typography
  1. Components
  2. Separator

Separator

Visually or semantically separates content.

Radix Primitives

An open-source UI component library.

Blog
Docs
Source

Installation

Install the following dependencies

npm install @radix-ui/react-separator

Copy and paste the following code into your project

import { styled } from '@styled-system/jsx'
import { type SeparatorVariantProps, separator } from '@styled-system/recipes'
 
export type SeparatorProps = SeparatorVariantProps & React.HTMLAttributes<HTMLDivElement>
 
const Component = styled('div', separator)
 
export const Separator = (props: SeparatorProps) => {
  return <Component {...props} />
}

Update the import paths to match your project setup

Usage

import { Separator } from '@/components/ui/separator'
<Separator />

Examples

Orientation

Horizontal (Default)

Vertical

Before
After

Types

Solid (Default)

Dotted

Dashed

Rounded

Default

Rounded

Combined Variants

Dotted & Rounded

Dashed & Rounded

Vertical & Dotted

Before
After

Built with ❤️ by the carbonteq team. The source code is available on GitHub.

© 2025 Pallas UI. All rights reserved.