The divider component is used to create a simple visual separation between elements.
Coffee Catch-up?
Hi Rachel,
Hope you’re doing well! Are you free for a quick coffee catch-up later this week?
It’s been a while, and I’d love to catch up on things.
Welcome to the Team!
Hey Sarah,
Welcome aboard! We’re excited to have you with us.
Let me know if you need anything while settling in.
Looking forward to working together!
<div class="max-w-sm grid gap-4 p-6 rounded-large bg-background ring ring-default-900/10">
<div class="flex gap-4">
<LumexAvatar Name="Rachel Green" Class="shrink-0" />
<div class="space-y-1">
<h4 class="font-semibold text-small">Coffee Catch-up?</h4>
<p class="text-small text-foreground-500 line-clamp-2">
Hi Rachel,
Hope you’re doing well! Are you free for a quick coffee catch-up later this week?
It’s been a while, and I’d love to catch up on things.
</p>
</div>
</div>
<LumexDivider />
<div class="flex gap-4">
<LumexAvatar Name="Sarah Salvatore" Class="shrink-0" />
<div class="space-y-1">
<h4 class="font-semibold text-small">Welcome to the Team!</h4>
<p class="text-small text-foreground-500 line-clamp-2">
Hey Sarah,
Welcome aboard! We’re excited to have you with us.
Let me know if you need anything while settling in.
Looking forward to working together!
</p>
</div>
</div>
</div>
The divider component supports both horizontal and vertical orientations.
You can switch it to vertical when needed to separate content vertically.
Use the Orientation parameter.