UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

Eldora UI/Seperate Away Text

Text effects
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

Seperate Away Text

A seperate away text component.

npx shadcn@latest add https://eldoraui.site/r/seperate-away-text.json
Open in v0 Docs Repo
Library
Eldora UI
License
MIT
Stack
React · Tailwind CSS · animated
Packages
clsxmotion
Size
59 lines
Demo
From Eldora UI

Code

registry/eldoraui/seperate-away-text.tsx

"use client"

import clsx from "clsx"
import { motion } from "motion/react"

interface SeparateAwayTextProps {
  textLeft?: string
  textRight?: string
  className?: string
}

export const SeparateAwayText: React.FC<SeparateAwayTextProps> = ({
  textLeft = "",
  textRight = "",
  className = "",
}) => {
  const separate = {
    hidden: { opacity: 0, y: 0 },
    visible: (custom: number) => ({
      opacity: 1,
      y: custom * 5,
      transition: { duration: 1.5 },
    }),
  }

  return (
    <div className={className}>
      <motion.h1
        custom={-1}
        variants={separate}
        initial="hidden"
        animate="visible"
        className={clsx(
          "font-display text-center font-bold drop-shadow-sm",
          "text-4xl md:text-5xl lg:text-6xl xl:text-7xl",
          "tracking-[-0.02em]",
          "md:leading-[4rem] lg:leading-[4.5rem] xl:leading-[5rem]"
        )}
      >
        {textLeft}
      </motion.h1>
      <motion.h1
        custom={1}
        variants={separate}
        initial="hidden"
        animate="visible"
        className={clsx(
          "font-display text-center font-bold drop-shadow-sm",
          "text-4xl md:text-5xl lg:text-6xl xl:text-7xl",
          "tracking-[-0.02em]",
          "md:leading-[4rem] lg:leading-[4.5rem] xl:leading-[5rem]"
        )}
      >
        {textRight}
      </motion.h1>
    </div>
  )
}

More like this

Scroll Index

Kokonut UI·Text effects

ASCII Text

React Bits·Text effectsMIT+

Wavy Text

Eldora UI·Text effects

Label

shadcn/ui·Inputs & forms

8-bit Slider

8bitcn·Inputs & forms

Fuzzy Text

React Bits·Text effectsMIT+

Word Rotate

Magic UI·Text effects

Family Button

Cult UI·Buttons

8-bit Health Bar

8bitcn·Feedback & loaders

8-bit Mana Bar

8bitcn·Feedback & loaders

8-bit Progress

8bitcn·Feedback & loaders

Border Trail

Motion Primitives·Cursor & effects

Drape Background

Kokonut UI·Backgrounds

Ai Message

SmoothUI·Backgrounds

Ai Reasoning

SmoothUI·Media & 3D