Components
Loading preview...
HeroUI v3 Separator — horizontal/vertical divider with content, variants, on-surface usage and a custom render-function API.
npx shadcn@latest add https://21st.dev/r/hero_ui/heroui-separatorimport { Separator } from "@/components/ui/heroui-separator"
const items = [
{
iconUrl: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/3dicons/bell-small.png",
subtitle: "Receive account activity updates",
title: "Set Up Notifications",
},
{
iconUrl: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/3dicons/compass-small.png",
subtitle: "Connect your browser to your account",
title: "Set up Browser Extension",
},
{
iconUrl:
"https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/3dicons/mint-collective-small.png",
subtitle: "Create your first collectible",
title: "Mint Collectible",
},
]
export default function WithContent() {
return (
<div className="max-w-md space-y-4">
{items.map((item, index) => (
<div key={index}>
<div className="flex items-center gap-3">
<img alt={item.title} className="size-12" src={item.iconUrl} />
<div className="flex-1 space-y-0">
<h4 className="text-small font-medium">{item.title}</h4>
<p className="text-sm text-muted-foreground">{item.subtitle}</p>
</div>
</div>
{index < items.length - 1 && <Separator className="my-4" />}
</div>
))}
</div>
)
}