Sections
Get Started
Components
- Accordion
- Alert Dialog
- Animated Gradient Text
- Animated Shiny Text
- Avatar
- Badge
- Bento Box
- Bento Grid
- Border Beam
- Breadcrumbs
- Card
- Checkbox
- Custom Cursor
- Dialog
- Glow Border
- Glow Card
- Hyper Text
- Logo Beam
- Marquee
- Number Counter
- Popover
- Ripple Button
- Scroll Area
- Separator
- Shimmer Button
- Shinny Icons
- Tabs
- Terminal
- Text Animate
- Theme Toggler
- Typing Animation
- Word Rotate
P
Profile
B
Billing
S
Security
"use client"
import * as React from "react"
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { Separator } from "@/components/ui/separator"
export function SeparatorDemo() {
const settings = [
{ id: "profile", title: "Profile" },
{ id: "billing", title: "Billing" },
{ id: "security", title: "Security" },
]
return (
<div className="container mx-auto space-y-8 py-10">
<Card>
<CardContent className="space-y-6 p-6">
<div className="space-y-0">
{settings.map((setting, index) => (
<React.Fragment key={setting.id}>
<div className="flex items-center space-x-3 py-3">
<div className="bg-muted flex h-8 w-8 items-center justify-center rounded-md">
<span className="text-xs font-medium">
{setting.id.charAt(0).toUpperCase()}
</span>
</div>
<p className="text-sm font-medium">{setting.title}</p>
</div>
{index < settings.length - 1 && <Separator />}
</React.Fragment>
))}
</div>
</CardContent>
</Card>
</div>
)
}
Installation
pnpm dlx shadcn@latest add https://ebonui.com/r/separator.json
Usage
import { Separator } from "@/components/ui/separator"<Separator />Support Ebon UI by giving it a star on GitHub!
A lot of work goes into maintaining and improving Ebon UI. Your stars help show your support and encourage further development.
Star on Github