Kokonut UI

Sliced Text

Text 10

About

An animated text that splits into two horizontal halves and slices apart on hover.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sliced Text to your project and fits it to your theme.

Code

How Sliced Text is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SlicedText from "@/components/ui/sliced-text";

export default function SlicedTextDemo() {
  return (
    <div className="flex min-h-[300px] w-full items-center justify-center bg-background p-8">
      <SlicedText
        text="Sliced Text"
        className="text-6xl font-bold text-foreground"
        splitSpacing={4}
      />
    </div>
  );
}

Dependencies

More by Kokonut UI

View all
  • Background Paths

    Background Paths

    6K
  • Shape Landing Hero

    Shape Landing Hero

    3.6K
  • Beams Background

    Beams Background

    2.9K
  • Bento Grid

    Bento Grid

    2.2K
  • v0 AI Chat

    v0 AI Chat

    2.2K
  • AI Voice Input

    AI Voice Input

    1.8K
  • Hand Writing Text

    Hand Writing Text

    1.3K
  • Action Search Bar

    Action Search Bar

    1.3K

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    134
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    9
  • Text Reveal

    Text Reveal

    31
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Scroll Fill Headline

    Scroll Fill Headline

    44
  • Shine Border

    Shine Border

    1K
  • Split text

    Split text

    79
  • Motion Blur Text

    Motion Blur Text

    47