MynaUI
No results found.
Theme
Toggle Theme (Dark)
Documentation
Getting Started
Design System
Changelog
FAQ
Legal
Icons
Elements
Accordion
Alert Dialog
Alert
Avatar Groups
Avatar
Badge
Breadcrumb
Button Groups
Button
Calendar
Combobox
Command
Context Menu
Data Table
Dialog
Drawer
Dropdown Menu
Menubar
Pagination
Popover
Progress
Rating
Sheet
Skeleton
Spinner
Table
Tabs
Toast
Toggle and Toggle Group
Tooltip
Forms
Checkbox
Date Picker
Input OTP
Input
Radio
Select
Slider
Switch
Textarea
Marketing
404
Banners
Blog List
Blog Post
Call to Action
Cookies
FAQ
Features
Footer
Header
Hero
Newsletters
Statistics
Testimonial Logos
Application
App Headers
App Sheets
Application Dialogs
Card Headers
Cards
Containers
Dividers
Empty States
Forgot Password
Login
Notifications
Registration
Section Headers
Documentation
  • Getting Started
  • Copybook New
  • Design System
  • Icons
  • Changelog
  • Legal
  • Figma
  • Request Components
  • Request Icons
Elements
  • Accordion
  • Alert Dialog
  • Alert
  • Avatar Groups
  • Avatar
  • Badge
  • Breadcrumb
  • Button Groups
  • Button
  • Calendar
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Dialog
  • Drawer
  • Dropdown Menu
  • Menubar
  • Pagination
  • Popover
  • Progress
  • Rating
  • Sheet
  • Skeleton
  • Spinner
  • Table
  • Tabs
  • Toast
  • Toggle and Toggle Group
  • Tooltip
Forms
  • Checkbox
  • Date Picker
  • Input OTP
  • Input
  • Radio
  • Select
  • Slider
  • Switch
  • Textarea
Marketing
  • 404
  • Banners
  • Blog List
  • Blog Post
  • Call to Action
  • Cookies
  • FAQ
  • Features
  • Footer
  • Header
  • Hero
  • Newsletters
  • Statistics
  • Testimonial Logos
Application
  • App Headers
  • App Sheets
  • Application Dialogs
  • Card Headers
  • Cards
  • Containers
  • Dividers
  • Empty States
  • Forgot Password
  • Login
  • Notifications
  • Registration
  • Section Headers
Newsletter

Get the latest news and updates from MynaUI

Subscribe for Updates

Dividers

Dividers are used to separate content in your application.

import { Separator } from "@/components/ui/separator";

export default function Basic() {
  return (
    <>
      <div className="relative">
        <div
          aria-hidden="true"
          className="absolute inset-0 grid place-items-center"
        >
          <Separator />
        </div>
        <div className="relative flex justify-center">
          <span className="bg-background px-2 text-sm text-muted-foreground">
            Or
          </span>
        </div>
      </div>
      <div className="relative">
        <div
          aria-hidden="true"
          className="absolute inset-0 grid place-items-center"
        >
          <Separator />
        </div>
        <div className="relative flex justify-start">
          <span className="bg-background px-2 text-sm text-muted-foreground">
            Or
          </span>
        </div>
      </div>
      <div className="relative">
        <div
          aria-hidden="true"
          className="absolute inset-0 grid place-items-center"
        >
          <Separator />
        </div>
        <div className="relative flex justify-end">
          <span className="bg-background px-2 text-sm text-muted-foreground">
            Or
          </span>
        </div>
      </div>
    </>
  );
}
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";

export default function WithButton() {
  return (
    <div className="relative">
      <div
        aria-hidden="true"
        className="absolute inset-0 grid place-items-center"
      >
        <Separator />
      </div>
      <div className="relative flex justify-center">
        <Button variant="outline" size="sm">
          Load More
        </Button>
      </div>
    </div>
  );
}
import { Separator } from "@/components/ui/separator";

export default function Vertical() {
  return (
    <div className="flex flex-col items-center justify-center gap-2">
      <Separator orientation="vertical" className="h-10" />
      <div className="flex h-full items-center justify-center">
        <span className="px-2 text-sm text-muted-foreground">
          Or
        </span>
      </div>
      <Separator orientation="vertical" className="h-10" />
    </div>
  );
}
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import {
  TypeBold,
  TypeItalic,
  TypeText,
  TypeUnderline,
} from "@mynaui/icons-react";

export default function MultipleButtons() {
  return (
    <div className="relative">
      <div
        aria-hidden="true"
        className="absolute inset-0 grid place-items-center"
      >
        <Separator />
      </div>
      <div className="relative flex justify-center">
        <span className="isolate inline-flex -space-x-px *:rounded-none">
          <Button
            variant="outline"
            size="icon"
            className="first:rounded-l-md last:rounded-r-md focus:z-10"
          >
            <TypeBold className="size-4" stroke={2} />
          </Button>
          <Button
            variant="outline"
            size="icon"
            className="first:rounded-l-md last:rounded-r-md focus:z-10"
          >
            <TypeItalic className="size-4" stroke={2} />
          </Button>
          <Button
            variant="outline"
            size="icon"
            className="first:rounded-l-md last:rounded-r-md focus:z-10"
          >
            <TypeText className="size-4" stroke={2} />
          </Button>
          <Button
            variant="outline"
            size="icon"
            className="first:rounded-l-md last:rounded-r-md focus:z-10"
          >
            <TypeUnderline className="size-4" stroke={2} />
          </Button>
        </span>
      </div>
    </div>
  );
}
import { Separator } from "@/components/ui/separator";

export default function Colors() {
  return (
    <>
      <div className="relative">
        <div
          aria-hidden="true"
          className="absolute inset-0 grid place-items-center"
        >
          <Separator className="bg-red-200 dark:bg-red-800" />
        </div>
        <div className="relative flex justify-center">
          <span className="bg-background px-2 text-sm text-red-600">Red</span>
        </div>
      </div>
      <div className="relative">
        <div
          aria-hidden="true"
          className="absolute inset-0 grid place-items-center"
        >
          <Separator className="bg-emerald-200 dark:bg-emerald-800" />
        </div>
        <div className="relative flex justify-center">
          <span className="bg-background px-2 text-sm text-emerald-600">
            Emerald
          </span>
        </div>
      </div>
      <div className="relative">
        <div
          aria-hidden="true"
          className="absolute inset-0 grid place-items-center"
        >
          <Separator className="bg-amber-200 dark:bg-amber-800" />
        </div>
        <div className="relative flex justify-center">
          <span className="bg-background px-2 text-sm text-amber-600">
            Amber
          </span>
        </div>
      </div>
    </>
  );
}

Not affiliated with Figma, TailwindCSS or shadcn/ui.

X (Twitter) Logo Dribbble Logo Figma Logo