Decorated Text

a decorative text frame with corner accents and a compact entrance effect.

DecoratedText

Installation

npx shadcn@latest add https://scrollxui.dev/registry/decorated-text.json 

Usage

import { DecoratedText } from "@/components/ui/decorated-text";
<DecoratedText className="text-4xl font-bold">
    DecoratedText
  </DecoratedText>

API Reference

Decorated Text

a decorative text frame with corner accents and a compact entrance effect.

Props

PropertyTypeDefaultDescription
textstring-
Text content to display. If omitted, `children` will be used.
childrenReactNode-
React node content rendered when `text` is not provided.
classNamestring-
Custom classes for styling the root element.
borderedbooleantrue
Toggles the border around the text.
showIconsbooleantrue
Controls visibility of corner icons.
iconClassNamestring-
Custom classes for styling each corner icon.
glowEffectbooleantrue
Enables the hover glow animation on the frame.
flickerbooleantrue
Controls the entrance flicker animation.

Built withby Ahdeetai.