<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-built-a-dead-simple-react-component-for-ascii-text-art-alenz75gx" -->

---
title: I built a dead-simple React component for ASCII text art
description: A developer released Better Ascii, a minimal React component that wraps figlet to render ASCII text art without manual setup. It ships with bundled fonts...
canonical: https://daily.dev/posts/i-built-a-dead-simple-react-component-for-ascii-text-art-alenz75gx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I built a dead-simple React component for ASCII text art | daily.dev
og:description: A developer released Better Ascii, a minimal React component that wraps figlet to render ASCII text art without manual setup. It ships with bundled fonts...
og:url: https://daily.dev/posts/i-built-a-dead-simple-react-component-for-ascii-text-art-alenz75gx
og:image: https://api.daily.dev/og/posts/aLeNz75gx.png
og:image:alt: I built a dead-simple React component for ASCII text art
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I built a dead-simple React component for ASCII text art

**[Kennedy Anyidoho](https://daily.dev/sources/b6djvovmdq4jgskukp6q3)** · [@kennyanyi](https://daily.dev/kennyanyi) · 1 min read · 0 upvotes · 0 comments

## Summary

A developer released Better Ascii, a minimal React component that wraps figlet to render ASCII text art without manual setup. It ships with bundled fonts (ansiShadow, deltaCorpsPriest1, alpha), supports Next.js App Router, includes accessibility attributes (role='img', aria-label), and is fully typed with ESM and CJS support. Install via npm and drop in the component with a font prop.

## Content

Tired of wiring up figlet yourself every time you want ASCII art in a React app? I made [Better Ascii](https://better-ascii.vercel.app/) , a tiny component that just works.

```
npm install better-ascii
```

```
import { Ascii, fonts } from 'better-ascii';

<Ascii font={fonts.ansiShadow} 
       className ="Leading-tight tracking-tight">
    Better Ascii
</Ascii>
```

That's it. No crazy setup or config.

What it handles for you:

- Bundled fonts (ansiShadow, deltaCorpsPriest1, alpha + more on the way)
- Next.js App Router compatible out of the box
- Accessibility — role="img", aria-label, loading/error states
- Fully typed, ESM + CJS

Source on [GitHub](https://github.com/kennyAnyi9/better-ascii), MIT licensed. Would love feedback on which fonts to bundle next.

#react #opensource #typescript #frontend

## Similar posts on daily.dev

- [Responsive ASCII Arts using text-fit](https://daily.dev/posts/responsive-ascii-arts-using-text-fit-i5qji5wm8) · CSS Tip · 6 upvotes · 1 comments
- [From pixels to characters: The engineering behind GitHub Copilot CLI’s animated ASCII banner](https://daily.dev/posts/from-pixels-to-characters-the-engineering-behind-github-copilot-cli-s-animated-ascii-banner-by6szkb17) · GitHub Blog · 152 upvotes · 8 comments
- [Toon Title Text Generator](https://daily.dev/posts/toon-title-text-generator-hcnnulhkq) · CSS-Tricks · 11 upvotes · 1 comments

---

[View this post on daily.dev](https://daily.dev/posts/i-built-a-dead-simple-react-component-for-ascii-text-art-alenz75gx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/i-built-a-dead-simple-react-component-for-ascii-text-art-alenz75gx","headline":"I built a dead-simple React component for ASCII text art","text":"A developer released Better Ascii, a minimal React component that wraps figlet to render ASCII text art without manual setup. It ships with bundled fonts (ansiShadow, deltaCorpsPriest1, alpha), supports Next.js App Router, includes accessibility attributes (role='img', aria-label), and is fully typed with ESM and CJS support. Install via npm and drop in the component with a font prop.","url":"https://daily.dev/posts/i-built-a-dead-simple-react-component-for-ascii-text-art-alenz75gx","datePublished":"2026-03-28T16:40:07.979Z","dateModified":"2026-03-28T16:42:17.451Z","author":{"@type":"Person","name":"Kennedy Anyidoho","url":"https://daily.dev/kennyanyi","image":"https://media.daily.dev/image/upload/v1684179740/avatars/avatar_b6DJvOVMdq4jgSKUkp6q3.jpg","description":"I am a junior Front-end React Developer, looking to connect with senior developers  and learn more ","worksFor":{"@type":"Organization","name":"WISLAW","logo":"https://media.daily.dev/image/upload/s--GqomfmbQ--/f_auto/v1749211626/companies/wislawedufund"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":300}},"image":"https://media.daily.dev/image/upload/s--AuhX2eVw--/f_auto/v1774716023/posts/aLeNz75gx?_a=BAMAMiWQ0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/b6djvovmdq4jgskukp6q3","name":"Kennedy Anyidoho"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kennedy Anyidoho","item":"https://daily.dev/sources/b6djvovmdq4jgskukp6q3"},{"@type":"ListItem","position":3,"name":"I built a dead-simple React component for ASCII text art"}]}
```

