Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add `TextRect` component to easily add backgrounds to `Text` components

Open
#479 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Start by locating the existing Text, Rect, Svg, and Canvas components and reviewing how text dimensions are obtained. Clarify whether the work should add a standalone TextRect component or background and padding support to Text, then define the expected dimension and padding behavior before implementation.

Written by the indexing model from the issue text.

Description

layer:canvas layer:svg

Would be very helpful when using Svg and Canvas layers to easily add a Rect as a background behind a Text. Getting the dimensions (and support a padding attribute) will take some thought.

This could also be directly integrated into Text as:

<Text background="...">, <Text bg="...">, etc

Dominant language
TypeScript
Stars
1.3k
Forks
41
Avg merge
3d 3h
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from techniq/layerchart

All issues in techniq/layerchart

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.