Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
- Typography
shadcn-cssinjs
StyleX-styled Base UI components.
DocsComponentsRegistry
import { Separator } from "@/components/ui/separator";
export function SeparatorDemo() {
return (
<div>
<div style={{ display: "flex", flexDirection: "column", gap: 4 }}>Installation
$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.com/r/separator.json
Usage
import { Separator } from "@/components/ui/separator/separator";<Separator />
<Separator orientation="vertical" />Examples
Vertical
Use orientation="vertical" inside a flex row.
ProfileSettingsLogout
import { Separator } from "@/components/ui/separator";
export function SeparatorVertical() {
return (
<div
style={{Menu
Use vertical separators to divide inline menu items.
SettingsManage preferences
AccountProfile & security
HelpSupport & docs
import { Separator } from "@/components/ui/separator";
export function SeparatorMenu() {
return (
<div className="flex items-center gap-2 text-sm md:gap-4">
<div className="flex flex-col gap-1">List
Use horizontal separators to divide stacked list items.
- Item 1
- Value 1
- Item 2
- Value 2
- Item 3
- Value 3
import { Separator } from "@/components/ui/separator";
export function SeparatorList() {
return (
<div className="flex w-full max-w-sm flex-col gap-2 text-sm">
<dl className="flex items-center justify-between">RTL
To enable right-to-left support, see the RTL guide.
shadcn/ui
الأساس لنظام التصميم الخاص بك
مجموعة من المكونات المصممة بشكل جميل يمكنك تخصيصها وتوسيعها والبناء عليها.
"use client";
import * as React from "react";
import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";API Reference
See the Base UI documentation for the full API.