BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aceternity/ascii-art

Ascii Art

aceternity/ascii-art
FreeComponent

aceternity publishes no description for this item.

Install it

npx shadcn@latest add https://ui.aceternity.com/registry/ascii-art.json

Source

components/ui/ascii-art.tsxui.aceternity.com/registry/ascii-art.json · first 6 KB
1"use client";
2import React, {
3 useEffect,
4 useLayoutEffect,
5 useRef,
6 useState,
7 useCallback,
8 useId,
9} from "react";
10import { motion, useInView } from "motion/react";
11import { cn } from "@/lib/utils";
12
13const useIsomorphicLayoutEffect =
14 typeof window !== "undefined" ? useLayoutEffect : useEffect;
15
16const ASCII_CHARSETS = {
17 standard: " .,:;i1tfLCG08@",
18 blocks: " ░▒▓█",
19 binary: " 01",
20 dots: " ·•●",
21 minimal: " .:░▒",
22 dense: " .'`^\",:;Il!i><~+_-?][}{1)(|/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$",
23 arrows: " ←↑→↓↔↕↖↗↘↙",
24 stars: " ·✦✧★",
25 hash: " -=#",
26 pipes: " |/─\\│",
27 braille: " ⠁⠃⠇⠏⠟⠿⡿⣿",
28 circles: " ○◔◑◕●",
29 squares: " ▢▣▤▥▦▧▨▩",
30 hearts: " ♡♥",
31 math: " +-×÷=≠≈∞",
32} as const;
33
34type CharsetPreset = keyof typeof ASCII_CHARSETS;
35
36const isCharsetPreset = (value: string): value is CharsetPreset => {
37 return value in ASCII_CHARSETS;
38};
39
40const resolveCharset = (charset: string): string => {
41 if (isCharsetPreset(charset)) {
42 return ASCII_CHARSETS[charset];
43 }
44 return charset;
45};
46
47const resolveCssColor = (
48 color: string,
49 element: HTMLElement | null
50): string => {
51 if (!color) return color;
52
53 if (color.startsWith("var(")) {
54 if (!element) return "#ffffff";
55
56 const tempDiv = document.createElement("div");
57 tempDiv.style.color = color;
58 element.appendChild(tempDiv);
59 const computedColor = getComputedStyle(tempDiv).color;
60 element.removeChild(tempDiv);
61 return computedColor || "#ffffff";
62 }
63
64 return color;
65};
66
67type AsciiArtProps = {
68 src: string;
69 /** Number of ASCII columns (character resolution). Higher = more detail. */
70 resolution?: number;
71 /** Charset preset name ("standard", "blocks", "binary", etc.) or custom character string */
72 charset?: CharsetPreset | string;
73 /** Text color for the ASCII art (ignored if colored=true) */
74 color?: string;
75 /** Background color */
76 backgroundColor?: string;
77 /** Convert to inverted colors (dark bg, light text) */
78 inverted?: boolean;
79 /** Enable colored ASCII (uses image colors) */
80 colored?: boolean;
81 /** Enable animation on load */
82 animated?: boolean;
83 /** Animation style */
84 animationStyle?: "fade" | "typewriter" | "matrix" | "none";
85 /** Duration for fade animation in seconds */
86 animationDuration?: number;
87 /** Font family for ASCII characters */
88 fontFamily?: string;
89// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • ui/ascii-art.tsx

Facts

Registry
aceternity
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-08
Last confirmed
today

Go to the source

ui.aceternity.com Raw registry item This item as JSON

More from aceternity

All 276 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
3d Card3d-cardaceternityComponentsFreeno deps
3d Globe3d-globeaceternityComponentsFree3 deps
3d Marquee3d-marqueeaceternityComponentsFreeno deps
3d Pin3d-pinaceternityComponentsFree1 dep
Animated Modalanimated-modalaceternityComponentsFree1 dep
Animated Testimonialsanimated-testimonialsaceternityComponentsFree2 deps
Animated Tooltipanimated-tooltipaceternityComponentsFree1 dep
Apple Cards Carouselapple-cards-carouselaceternityComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex