We're hitting Vercel's free tier limits! Help keep Sera UI alive.

Divider

A versatile divider component for creating visual separation between content sections with customizable styles and orientations.

Tickets Sold
1,587
Details

Ticket sales peaked in March, largely due to the “March Mountain Madness” event on March 12th, drawing significant tourist interest. Operational efficiencies and local hotel partnerships further boosted sales. Additionally, targeted social media promotions ahead of the event significantly increased online bookings.

Section Break
Info line

Installation

npx shadcn@latest add divider.json

Features

  • 🎨 Multiple Variants: Solid, dashed, dotted, and gradient styles
  • 📐 Flexible Orientation: Horizontal and vertical dividers
  • 🎯 Customizable: Adjustable thickness, color, and spacing
  • Accessible: Proper ARIA attributes for screen readers
  • 📱 Responsive: Works seamlessly across all device sizes

Usage

Basic Divider

Loading...

With Custom Styling

Loading...

Use Cases

1. Content Sections

Perfect for separating different content sections in articles or blog posts:

Loading...

2. Navigation Menus

Separate navigation items or menu sections:

Loading...

3. Card Components

Create visual separation within cards:

Loading...

4. Form Sections

Organize form fields into logical groups:

Loading...

5. Dashboard Widgets

Separate different metrics or widgets:

Loading...

6. Comment Threads

Separate individual comments or replies:

Loading...

7. Pricing Tables

Create clear separation between pricing tiers:

Loading...

API Reference

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'solid' \| 'dashed' \| 'dotted' \| 'gradient' | 'solid' | Visual style of the divider | | orientation | 'horizontal' \| 'vertical' | 'horizontal' | Direction of the divider | | thickness | number | 1 | Thickness in pixels | | color | string | 'gray' | Color of the divider | | opacity | number | 1 | Opacity level (0-1) | | height | number | - | Height for vertical dividers | | className | string | - | Additional CSS classes |

Best Practices

  1. Consistent Spacing: Use consistent margins around dividers
  2. Semantic Usage: Use dividers to enhance content hierarchy
  3. Accessibility: Ensure sufficient color contrast
  4. Responsive Design: Consider how dividers appear on mobile
  5. Visual Balance: Don't overuse dividers - they should enhance, not clutter

Examples in Real Applications

E-commerce Product Page

Loading...

Settings Panel

Loading...