tg-miniapp

Community

Telegram Mini Apps: safe areas, back button.

AuthorRaNDoM6913
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Telegram Mini Apps often struggle with safe-area handling in fullscreen, consistent branding within Telegram controls, and reliable back-button interactions. This skill provides battle-tested patterns and reusable solutions to these challenges, enabling safer and more polished UI in TG Mini Apps.

Core Features & Use Cases

  • Safe-area handling: reactive hooks and patterns to manage system and content safe areas across iOS/Android.
  • Branding in TG controls zone: a spacer in fullscreen that positions branding between the left Close button and right options without intercepting clicks.
  • Fixed positioning workaround: portal-based rendering to simulate fixed elements inside Telegram's transformed container.
  • Back-button integration: SDK-backed lifecycle (mount/show/hide and handlers) for reliable navigation.

Quick Start

Integrate the useSafeAreaInset hook and the Telegram SDK back-button lifecycle into your main App component to enable safe-area aware layouts.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tg-miniapp
Download link: https://github.com/RaNDoM6913/claude-code-superkit/archive/main.zip#tg-miniapp

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.