Vertical Separator

PreviousNext

A vertical separator component

Docs
shadcnui-blockscomponent

Preview

Loading preview…
components/customized/separator/separator-05.tsx
import { Button } from "@/registry/ui/button";
import { Input } from "@/registry/ui/input";
import { Label } from "@/registry/ui/label";
import { Separator } from "@/registry/ui/separator";

export default function SeparatorVertical() {
  return (
    <div className="w-full mt-6 flex items-center gap-6 h-40">
      <div className="grid w-full items-center gap-4">
        <div className="flex flex-col space-y-1.5">
          <Label htmlFor="email">Email</Label>
          <Input id="email" type="email" placeholder="Enter your email" />
        </div>
        <Button>Get Started</Button>
      </div>
      <div className="shrink-0 flex flex-col justify-center items-center overflow-hidden h-full gap-2">
        <Separator orientation="vertical" />
        <span>OR</span>
        <Separator orientation="vertical" />
      </div>

      <div className="grid w-full gap-2">
        <Button variant="outline">
          <svg
            stroke="currentColor"
            fill="currentColor"
            strokeWidth="0"
            viewBox="0 0 488 512"
            height="1em"
            width="1em"
            xmlns="http://www.w3.org/2000/svg"
            className="h-5 w-5"
          >
            <path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"></path>
          </svg>
          Sign up with Google
        </Button>
        <Button variant="outline">
          <svg
            stroke="currentColor"
            fill="currentColor"
            strokeWidth="0"
            viewBox="0 0 512 512"
            height="1em"
            width="1em"
            xmlns="http://www.w3.org/2000/svg"
          >
            <path d="M391.17,103.47H352.54v109.7h38.63ZM285,103H246.37V212.75H285ZM120.83,0,24.31,91.42V420.58H140.14V512l96.53-91.42h77.25L487.69,256V0ZM449.07,237.75l-77.22,73.12H294.61l-67.6,64v-64H140.14V36.58H449.07Z"></path>
          </svg>
          Sign up with Twitch
        </Button>
        <Button variant="outline">
          <svg
            stroke="currentColor"
            fill="currentColor"
            strokeWidth="0"
            viewBox="0 0 512 512"
            height="1em"
            width="1em"
            xmlns="http://www.w3.org/2000/svg"
          >
            <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
          </svg>
          Sign up with Twitter
        </Button>
      </div>
    </div>
  );
}

Installation

npx shadcn@latest add @shadcnui-blocks/separator-05

Usage

import { Separator05 } from "@/components/separator-05"
<Separator05 />