Command Palette

Search for a command...

Building Blocks for the Web

Clean, modern building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.

A simple OTP verification form
Open in New Tab
otp-01
app/otp/page.tsx
import { styled } from "styled-system/jsx";
import { OTPForm } from "@/components/otp-form";

export default function OTPPage() {
  return (
    <styled.div
      css={{
        display: "flex",
        minH: "svh",
        w: "full",
        alignItems: "center",
        justifyContent: "center",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "xs" }}>
        <OTPForm />
      </styled.div>
    </styled.div>
  );
}
A simple OTP verification form.
otp-01
otp-01otp-01
app/otp/page.tsx
import { styled } from "styled-system/jsx";
import { OTPForm } from "@/components/otp-form";

export default function OTPPage() {
  return (
    <styled.div css={{ display: "flex", minH: "svh", w: "full" }}>
      <styled.div
        css={{
          display: "flex",
          w: "full",
          alignItems: "center",
          justifyContent: "center",
          p: "6",
          lg: { w: "1/2" },
        }}
      >
        <styled.div css={{ w: "full", maxW: "xs" }}>
          <OTPForm />
        </styled.div>
      </styled.div>
      <styled.div css={{ pos: "relative", display: "none", w: "1/2", lg: { display: "block" } }}>
        <styled.img
          alt="Authentication"
          css={{
            pos: "absolute",
            inset: "0",
            w: "full",
            h: "full",
            objectFit: "cover",
            _dark: {
              filter: "brightness(0.2) grayscale(1)",
            },
          }}
          height={1080}
          src="/placeholder.svg"
          width={1920}
        />
      </styled.div>
    </styled.div>
  );
}
A two column OTP page with a cover image.
otp-02
otp-02otp-02
app/otp/page.tsx
import { LuGalleryVerticalEnd } from "react-icons/lu";
import { css } from "styled-system/css";
import { styled } from "styled-system/jsx";
import { OTPForm } from "@/components/otp-form";

export default function OTPPage() {
  return (
    <styled.div
      css={{
        bg: "muted",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        gap: "6",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ display: "flex", w: "full", maxW: "xs", flexDir: "column", gap: "6" }}>
        <styled.a
          href="#"
          css={{
            display: "flex",
            alignItems: "center",
            gap: "2",
            alignSelf: "center",
            fontWeight: "medium",
          }}
        >
          <styled.div
            css={{
              bg: "primary",
              color: "primary.fg",
              display: "flex",
              w: "6",
              h: "6",
              alignItems: "center",
              justifyContent: "center",
              rounded: "md",
            }}
          >
            <LuGalleryVerticalEnd className={css({ w: "4", h: "4" })} />
          </styled.div>
          Acme Inc.
        </styled.a>
        <OTPForm />
      </styled.div>
    </styled.div>
  );
}
An OTP page with a muted background color.
otp-03
otp-03otp-03
An OTP page with form and image
Open in New Tab
otp-04
app/otp/page.tsx
import { styled } from "styled-system/jsx";
import { OTPForm } from "@/components/otp-form";

export default function OTPPage() {
  return (
    <styled.div
      css={{
        display: "flex",
        minH: "svh",
        w: "full",
        alignItems: "center",
        justifyContent: "center",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm", md: { maxW: "3xl" } }}>
        <OTPForm />
      </styled.div>
    </styled.div>
  );
}
An OTP page with form and image.
otp-04
otp-04otp-04
app/otp/page.tsx
import { styled } from "styled-system/jsx";
import { OTPForm } from "@/components/otp-form";

export default function OTPPage() {
  return (
    <styled.div
      css={{
        bg: "bg",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        gap: "6",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm" }}>
        <OTPForm />
      </styled.div>
    </styled.div>
  );
}
A simple OTP form with social providers.
otp-05
otp-05otp-05